This method is specific to version 3, or higher, of the OS/2 operating system.
This method returns the handle of the active WPDesktop object.
#define INCL_WINWORKPLACE #include <os2.h> M_WPDesktop *somSelf; /* Pointer to the WPDesktop class object. */ HWND hwndDesktop; /* Handle of the active desktop object' frame window. */ hwndDesktop = _wpclsQueryActiveDesktopHWND( somSelf);