Function:
GetActiveWindow()

 

Description:
Retrieves the window handle to the active window associated with the thread that calls the function.

 

Parameters:
No parameters.

 

Returns:
The return value is the handle to the active window associated with the thread that calls the function. If the calling thread does not have an active window, the return value is NULL.

 

Example:
Click on the calc icon to view a sample of the GetActiveWindow function.