|
WindowHelperGetForegroundWindow Method |
Retrieves a handle to the foreground window (the window with which the user is currently
working). The system assigns a slightly higher priority to the thread that creates the
foreground window than it does to other threads.
GetForegroundWindow function Namespace: Xcalibur.NativeMethods.V2.WindowsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("user32.dll")]
public static IntPtr GetForegroundWindow()
<DllImportAttribute("user32.dll">]
Public Shared Function GetForegroundWindow As IntPtr
public:
[DllImportAttribute(L"user32.dll")]
static IntPtr GetForegroundWindow()
[<DllImportAttribute("user32.dll")>]
static member GetForegroundWindow : unit -> IntPtr
Return Value
IntPtrThe return value is a handle to the foreground window. The foreground window can
be NULL in certain circumstances, such as when a window is losing activation.
See Also