HWND GetForegroundWindow(void) |
The GetForegroundWindow function returns the handle of the window in the foreground (the window currently receiving keyboard input).
This function has no parameters.
The return value is the handle of the window in the foreground.
SetForegroundWindow