OS2 API:WinQueryObjectPath

From EDM2
Jump to: navigation, search

Contents

WinQueryObjectPath

WinQueryObjectPath(objectHandle, pathName, sizeOfPathName) 
Get the path name of the object.

Parameters

objectHandle - HOBJECT - input 
Object's handle.
pathName - PSZ - output 
Memory for the path name of the object.
sizeOfPathName - ULONG - input 
The size of the memory buffer for the path name - in bytes.

Constants

Returns

This function returns a BOOL with the values of:

Returns from WinGetLastError should WinQueryObjectPath fail:

Module

Define (C/C++)

INCL_WINWORKPLACE

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

...
HOBJECT className;
PSZ pathName;
ULONG sizeOfPathName; // use CCHMAXPATH plus one.
BOOL rc;
...
rc = WinQueryObjectPath (objectHandle, pathName, sizeOfPathName);
...

Related Functions

WinCreateObject WinQueryObject

Notes

OS Version Introduced

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


Back to OS/2 API

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox