Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure is used by File System Disk Manager (FSDMGR) helper functions to track the state of all file locks associated with an open file in the file system.

Syntax

typedef struct _FILELOCKSTATE {
  DWORD 
dwPosLow;
  DWORD 
dwPosHigh;
  DWORD 
dwAccess;
  LPCRITICAL_SECTION 
lpcs;
  BOOL 
fTerminal;
  HANDLE 
hevUnlock;
  DWORD 
cQueue;
  PVOID 
pvLockContainer;
} FILELOCKSTATE, * PFILELOCKSTATE;

Members

dwPosLow

Low- DWORDfile offset for the handle when the file lock is installed. This field is updated by the file system driver (FSD) in the MyACQUIREFILELOCKSTATEfunction.

dwPosHigh

High- DWORDfile offset for the handle when the file lock is installed. This field must be updated by the FSD in the MyAcquireFileLockStatefunction. This should be set to zero for file systems that do not support 64-bit offsets.

dwAccess

Access mode for the handle when the file lock is installed. This field must be updated by the FSD in the MyAcquireFileLockStatefunction. A combination of GENERIC_READ and GENERIC_WRITE.

lpcs

Critical section for this structure. This critical section must be entered in MyAquireFileLockStatebefore updating other members of the structure. The critical section is not exited until MyReleaseFileLockStateis called.

Remarks

Most members of this structure are managed by FSDMGR lock helper functions and ignored by the FSD. The lpcs , dwAccess , dwPosLow ,and dwPos high members are the only fields that are directly accessed by the FSD.

Requirements

Header fsdmgr.h
Library Fsdmgr.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also