GetWindowThreadProcessId function user32

int GetWindowThreadProcessId(
  1. int hWnd,
  2. Pointer<Uint32> lpdwProcessId
)

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
);

Implementation

int GetWindowThreadProcessId(int hWnd, Pointer<Uint32> lpdwProcessId) =>
    _GetWindowThreadProcessId(hWnd, lpdwProcessId);