OS2 API:WinQueryActiveDesktopPathname

From EDM2
Jump to: navigation, search

Contents

WinQueryActiveDesktopPathname

WinQueryActiveDesktopPathname(pathName, size) 
Get the handle to the object id.

Parameters

pathName - PSZ - output 
Memory buffer which this function will place the desktop folder's path name.
size - ULONG - input 
Size of the pathName memory buffer.

Constants

Returns

True if successful, false if not successful.

Returns from WinGetLastError should WinQueryActiveDesktopPathname fail:

Module

Define (C/C++)

INCL_WINWORKPLACE

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

...
PSZ pathName;
ULONG size;
BOOL rc;
...
rc = WinQueryActiveDesktopPathname (pathName, size);
...

Related Functions

WinQueryObjectPath

Notes

Since the desktop directory may not be <boot drive>:\DESKTOP, this API call is used to retrieve the directory of the desktop.

OS Version Introduced

OS/2 Warp 3.0 and above, eCS 1.0 and above


Back to OS/2 API

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox