win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinQueryWindowProcess (1.2)
                                                      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