Share via


GetForegroundWindow

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

HWND GetForegroundWindow(void);

Parameters

None.

Return Values

The handle to the foreground window indicates success.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

SetForegroundWindow

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.