This function is used to find the desktop window handle. For most calls however, the parameter HWND_DESKTOP can be used.
#define INCL_WINDESKTOP #include <OS2.H> HAB hab; HWND hwndDeskTop; hwndDeskTop = WinQueryDesktopWindow(hab, NULLHANDLE);