Method GetActiveWindow
| Edit this page View SourceGetActiveWindow()
Retrieves the window handle to the active window attached to the calling thread's message queue.
Declaration
public static nint GetActiveWindow()
Returns
Type | Description |
---|---|
nint | The return value is the handle to the active window attached to the calling thread's message queue. Otherwise, the return value is IntPtr.Zero. |