| GetWindowThreadProcessId(IntPtr, Int32) | Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window. |
| GetWindowThreadProcessId(SafeHandle, Int32) | Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window. |