Method GetWindowThreadProcessId
GetWindowThreadProcessId(IntPtr)
Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.
public static uint GetWindowThreadProcessId(IntPtr wnd)
Parameters
wnd
IntPtrA handle to the window.
Returns
- uint
If the function succeeds, the return value is the identifier of the thread that created the window. If the window handle is invalid, the return value is zero.