Click or drag to resize

WindowsUtilitiesGetForegroundWindow 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.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static IntPtr GetForegroundWindow()

Return Value

Type: IntPtr
A handle to the foreground window.
See Also