Partager via


GetForegroundWindow

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

SetForegroundWindow