Show / Hide Table of Contents

Method GetActiveWindow

| Edit this page View Source

GetActiveWindow()

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.

Remarks

Learn more about this API from docs.microsoft.com.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX