Gets file information.

#define INCL_DOSFILEMGR
#include <os2.h>

HFILE     hf;           /*  The file handle. */
ULONG     ulInfoLevel;  /*  Level of file information required. */
PVOID     pInfo;        /*  Address of the storage area where the system returns the requested level of file information. */
ULONG     cbInfoBuf;    /*  The length, in bytes, of pInfo. */
APIRET    ulrc;         /*  Return Code. */

ulrc = DosQueryFileInfo(hf, ulInfoLevel, pInfo,
         cbInfoBuf);


[Back] [Next]