User32GetActiveWindow Method
Retrieves the window handle to the active window attached to the calling thread's message queue.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static IntPtr GetActiveWindow()
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function GetActiveWindow As IntPtr
Dim returnValue As IntPtr
returnValue = User32.GetActiveWindow()
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static IntPtr GetActiveWindow()
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member GetActiveWindow : unit -> IntPtr
No code example is currently available or this language may not be supported.
Return Value
IntPtr
The return value is the handle to the active window attached to the calling thread's message queue.
Otherwise, the return value is
Zero.