Queries the state of the specified protected file handle.

#define INCL_DOSFILEMGR
#include <os2.h>

HFILE     hFile;               /*  Handle of the file to be queried. */
PULONG    pMode;               /*  Pointer to the ULONG in which the content of the fsOpenMode field defined in a previous DosOpen is returned. */
FHLOCK    fhFileHandleLockID;  /*  The lock id of the protected file handle. */
APIRET    ulrc;                /*  Return Code. */

ulrc = DosProtectQueryFHState(hFile, pMode,
         fhFileHandleLockID);


[Back] [Next]