Browse - programming tips - get thread idDate: 2008jan19 Platform: win32 Language: C/C++ Keywords: threadID Q. How can I get my thread id? A. DWORD dwMyThreadId: dwMyThreadId = GetCurrentThreadId(); Q. How can I get the thread id of a given HWND ? A. DWORD dwTheirThreadId; dwTheirThreadId = GetWindowThreadProcessId(hwnd, NULL);
Add a commentSign in to add a comment |