Closes a handle to a file, pipe, or device.

#define INCL_DOSFILEMGR
#include <os2.h>

HFILE     hFile;               /*  The handle returned by a previous call to a DosProtectOpen. */
FHLOCK    fhFileHandleLockID;  /*  The filehandle lockid obtained from DosProtectOpen. */
APIRET    ulrc;                /*  Return Code. */

ulrc = DosProtectClose(hFile, fhFileHandleLockID);


[Back] [Next]