Gets file information.
#define INCL_DOSFILEMGR
#include <os2.h>
HFILE hf; /* 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. */
FHLOCK fhFileHandleLockID; /* The filehandle lockid returned by a previous DosProtectOpen. */
APIRET ulrc; /* Return Code. */
ulrc = DosProtectQueryFileInfo(hf, ulInfoLevel,
pInfo, cbInfoBuf, fhFileHandleLockID);