SyntaxFix
Write A Post
Hire A Developer
Questions
Just to make sure you are not confusing the tid (thread id) and the pid (process id):
DWORD pid; DWORD tid = GetWindowThreadProcessId( this->m_hWnd, &pid);