GetWindowThreadProcessId function user32
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);