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:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static IntPtr GetForegroundWindow()

Return Value

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