Partager via


GetWindowThreadProcessId (Windows Embedded CE 6.0)

1/6/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.

Syntax

DWORD GetWindowThreadProcessId(
  HWND hWnd, 
  LPDWORD lpdwProcessId 
);

Parameters

  • 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.

Return Value

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

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Windows Functions