win32process.GetWindowThreadProcessId
int, int = GetWindowThreadProcessId(hwnd)
Retrieves the identifier of the thread and process that created the specified window.
Parameters
Return Value
The result is a tuple of (threadId, processId)
int, int = GetWindowThreadProcessId(hwnd)
Retrieves the identifier of the thread and process that created the specified window.