WinQueryObjectPath: Difference between revisions
Appearance
Line 19: | Line 19: | ||
INCL_WINWORKPLACE | INCL_WINWORKPLACE | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
Revision as of 19:27, 18 January 2017
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.
Returns
This function returns a BOOL with the values of:
Returns from WinGetLastError should WinQueryObjectPath fail:
Define (C/C++)
INCL_WINWORKPLACE
Calling Convention
Example Code
... HOBJECT className; PSZ pathName; ULONG sizeOfPathName; // use CCHMAXPATH plus one. BOOL rc; ... rc = WinQueryObjectPath (objectHandle, pathName, sizeOfPathName); ...
Related Functions
OS Version Introduced
OS/2 Warp 3.0