This method is specific to version 3, or higher, of the OS/2 operating system.

This method returns a pointer to the active WPDesktop object.

#define INCL_WINWORKPLACE
#include <os2.h>

M_WPDesktop     *somSelf;    /*  Pointer to the WPDesktop class object. */
WPDesktop       *WPDesktop;  /*  Pointer to the active desktop object. */

WPDesktop = _wpclsQueryActiveDesktop(somSelf);


[Back] [Next]