This function is specific to OS/2 Version 3.0 or higher.
This function returns the directory specification of a given object handle.
#define INCL_WINWORKPLACE #include <os2.h> HOBJECT hObject; /* Object handle of the object whose file/directory specification is to be returned. */ 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 = WinQueryObjectPath(hObject, pszPathname, ulSize);