#define INCL_WINWORKPLACE
#include "os2.h"

HOBJECT hObject;
ULONG   ulView;
BOOL    fFlags
BOOL    fSuccess;

hObject = WinQueryObject("<WP_DESKTOP>");
if (hObject != NULL)
  {
    /* WinQueryObject was successful */

    fSuccess = WinOpenObject(hObject, OPEN_SETTINGS,TRUE);

    if (fSuccess)
    {
       /* If concurrent views is off and a settings view of the desktop already
        * exits, then it was successfully resurfaced.
        *
        * If concurrent views is on then another settings view of the desktop
        * was successfully opened
       */
    }
    else
    {
       /* WinOpenObject failed */

    }


[Back] [Next]