◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINMESSAGEMGR BOOL WinQueryWindowProcess(hwnd, ppid, ptid) HWND hwnd; /* handle of the window */ PPID ppid; /* address of variable for process identifier */ PTID ptid; /* address of variable for thread identifier */ The WinQueryWindowProcess function obtains the process identifier and thread identifier of the thread that created a window. Parameter Description ──────────────────────────────────────────────────────────────────────────── hwnd Identifies the window. ppid Specifies the process identifier of the thread that created the window. It can be NULL if you aren't interested in this value. ptid Specifies the thread identifier of the thread that created the window. It can be NULL if you aren't interested in this value. Return Value The return value is TRUE if the function is successful or FALSE if an error occurs. See Also DosGetPID ♦