Sets file information.

#define INCL_DOSFILEMGR
#include <os2.h>

HFILE     hf;                  /*  File handle. */
ULONG     ulInfoLevel;         /*  Level of file information being set. */
PVOID     pInfoBuf;            /*  Address of the storage area containing the structures for file information levels. */
ULONG     cbInfoBuf;           /*  The length, in bytes, of pInfoBuf. */
FHLOCK    fhFileHandleLockID;  /*  The filehandle lockid obtained from DosProtectOpen. */
APIRET    ulrc;                /*  Return Code. */

ulrc = DosProtectSetFileInfo(hf, ulInfoLevel,
         pInfoBuf, cbInfoBuf, fhFileHandleLockID);


[Back] [Next]