C ++ 11の標準ライブラリには<thread>
、スレッドの作成を可能にするが含まれています。ただし、Windows APIには、一部の関数(つまり、 PostThreadMessage)のIDが必要です。どうすれば入手できますか?
備考:std::thread::get_id()
機能していないようです:
PostThreadMessage(m_thread->get_id(), WM_QUIT, 0, 0);
e:\documents\khook\khooker\hook_runner.cpp(129): error C2664: 'PostThreadMessageW' : cannot convert parameter 1 from 'std::thread::id' to 'DWORD'