This function obtains a handle of the window with the input focus when that window is associated with the message queue of the calling thread.
|The calling thread does not have the input focus.
|The handle of the window with the input focus.
Even if this function returns null, the queue of another thread may be associated with a window that has the keyboard focus.
The function get_foreground_window may be used to obtain a handle of the window which has the input focus. The calling thread's message queue may be associated with a window owned by another thread by using the function attach_thread_input.