Gets the full path of the current directory for the requesting process on the specified drive.
#define INCL_DOSFILEMGR #include <os2.h> ULONG disknum; /* The drive number. */ PBYTE pBuf; /* Address of the full path of the current directory. */ PULONG pcbBuf; /* Address of the length, in bytes, of the pBuf buffer. */ APIRET ulrc; /* Return Code. */ ulrc = DosQueryCurrentDir(disknum, pBuf, pcbBuf);