Table of Contents

Method GetForegroundWindow

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetForegroundWindow()

Retrieves a handle to the foreground window (the window with which the user is currently working).

public static extern nint GetForegroundWindow()

Returns

nint

A handle to the foreground window. If no foreground window exists, the return value is Zero.