Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GetForegroundWindow

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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


HWND GetForegroundWindow(void);

None.

The handle to the foreground window indicates success.

Headerwinuser.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft