Gets file information for a file or subdirectory.

#define INCL_DOSFILEMGR
#include <os2.h>

PSZ       pszPathName;  /*  Address of the ASCIIZ file specification of the file or subdirectory. */
ULONG     ulInfoLevel;  /*  The level of path information required. */
PVOID     pInfoBuf;     /*  Address of the storage area containing the requested level of path information. */
ULONG     cbInfoBuf;    /*  The length, in bytes, of pInfoBuf. */
APIRET    ulrc;         /*  Return Code. */

ulrc = DosQueryPathInfo(pszPathName, ulInfoLevel,
         pInfoBuf, cbInfoBuf);


[Back] [Next]