Source position: jwawinuser.pas line 6902
function GetWindowThreadProcessId(
hWnd: HWND;
lpdwProcessId: LPDWORD
):DWORD;