Article ID: 162445
Article Last Modified on 10/15/2003
This example for Windows displays the window handle for the currently active Windows application. When the WAIT window is displayed, you have 5 seconds to press ALT+TAB to switch to a different Windows application, or you can leave Visual FoxPro as the active application.
The GetActiveWindow function retrieves the window handle of the active
window associated with the thread that calls the function.
HWND GetActiveWindow(VOID)
Parameters
This function has no parameters.
Return Values
If the function succeeds, the return value is the handle of 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.
Additional query words: vfoxwin
Keywords: KB162445