yes, i checked.
actually i create a window with classname "WindowsApp"
and window title as "Windows App" for testing.
i even use Spy++ to confirm the classname and title. they are correct.
i attach my program as below, hope you can help me out.
cos i'm stuck here and cannot...
Hi Sir,
Why do i keep getting zero for the return value of GetWindowThreadProcessId?
any idea? i can't seem to get the correct value for thread id.
Please help.
Thanks in advance.
hWnd = FindWindow("WindowsApp", "Windows App");
dwPid = GetWindowThreadProcessId(hWnd, NULL)...
Hi Sir,
Why do i keep getting zero for the return value of GetWindowThreadProcessId?
any idea? i can't seem to get the thread id.
Please help.
Thanks in advance.
hWnd = FindWindow("WindowsApp", "Windows App");
dwPid = GetWindowThreadProcessId(hWnd, NULL);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.