Share via


GetForegroundWindow (Compact 2013)

3/28/2014

This function returns the handle to the foreground window - the window with which the user is currently working.

Syntax

HWND GetForegroundWindow(void);

Parameters

None.

Return Value

The handle to the foreground window indicates success.

Requirements

Header

winuser.h

See Also

Reference

Window Functions
SetForegroundWindow