GetActiveWindow

  HWND GetActiveWindow(void)    

The GetActiveWindow function retrieves the window handle of the active window associated with the thread that calls the function.

Parameters

This function has no parameters.

Return Value

The return value is the handle of the active window associated with the thread that calls the function.. The return value is NULL if the calling thread does not have an active window.

See Also

SetActiveWindow