Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GetWindowThreadProcessId

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.


DWORD GetWindowThreadProcessId(
  HWND hWnd, 
  LPDWORD lpdwProcessId 
);

hWnd

[in] Handle to the window.

lpdwProcessId

[out] Pointer to a 32-bit value that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the 32-bit value; otherwise, it does not.

The return value is the identifier of the thread that created the window.

Headerwinuser.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft