GetActiveWindow

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

This function retrieves the window handle to the active window associated with the thread that calls the function.


HWND GetActiveWindow(void);

None.

The handle to the active window associated with the calling thread's message queue indicates success. NULL indicates failure.

Headerwinuser.h
LibraryCaret.lib, Foregnd.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: