If this function is used to enumerate windows of other threads, it cannot be ensured that all the windows are enumerated, because the z-ordering of the windows can change during the enumeration. WinGetNextWindow must be used for this purpose.

If this function is called with QW_OWNER or QW_PARENT, the return value is WinQueryDesktopWindow(hab, NULLHANDLE), and not HWND_DESKTOP, when the desktop window is reached.

If this function is called with QW_PARENT for an object window, the return value is the handle of the object window associated with the desktop window as returned by the WinQueryObjectWindow function.


[Back] [Next]