get_foreground_window


handle get_foreground_window()

This function obtains a handle of the window that is currently executing in the foreground.

Return

handle

The handle of the window currently executing in the foreground.

Notes

The foreground window:

The foreground thread is automatically assigned a higher dispatching priority.

The function set_foreground_window may be used to set the foreground window.