GetActiveWindow

Syntax

HWND GetActiveWindow( )

This function retrieves the window handle of the active window. The active window is either the window that has the current input focus, or the window explicitly made active by the SetActiveWindow function.

This function has no parameters.

Return Value

The return value identifies the active window.