This function is specific to OS/2 Version 3.0 or higher.

This function returns the directory specification of the active desktop.

#define INCL_WINWORKPLACE
#include <os2.h>

PSZ      pszPathName;  /*  Memory allocated by caller in which directory specification is written. */
ULONG    ulSize;       /*  Number of bytes pointed to by pszPathName. */
BOOL     rc;           /*  Success indicator. */

rc = WinQueryActiveDesktopPathname(pszPathName,
       ulSize);


[Back] [Next]