win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinQueryDesktopWindow (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
HWND WinQueryDesktopWindow(hab, hdc)
HAB hab;    /* handle of the anchor block   */
HDC hdc;    /* handle of the device context */
 
The WinQueryDesktopWindow function retrieves the desktop window handle.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies an anchor block.
 
hdc        Identifies a device context. For MS OS/2, version 1.2, this
           parameter must be NULL.
 
Return Value
 
The return value is the desktop window handle or NULL if the device does not
support windowing.
 
Comments
 
For most Win calls the constant HWND_DESKTOP can be used for the desktop
window handle.
 
See Also
 
WinCreateWindow, WinQueryObjectWindow