Gets information from a file-system device.

#define INCL_DOSFILEMGR
#include <os2.h>

ULONG     disknum;    /*  Logical drive number for the disk about which information is to be retrieved. */
ULONG     infolevel;  /*  Level of file information required. */
PVOID     pBuf;       /*  Address of the storage area where the system returns the requested level of file information. */
ULONG     cbBuf;      /*  The length, in bytes, of the buffer that receives the file-system information. */
APIRET    ulrc;       /*  Return Code. */

ulrc = DosQueryFSInfo(disknum, infolevel,
         pBuf, cbBuf);


[Back] [Next]