FILELOCKSTATE (Windows CE 5.0)
This structure used by FSDMGR helper functions for tracking the state of all file locks associated with an open file on the file system.
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-DWORD file offset for the handle when the file lock is installed. This field is updated by the FSD in the AcquireFileLockState function. - dwPosHigh
High-DWORD file offset for the handle when the file lock is installed. This field must be updated by the FSD in the MyAcquireFileLockState function. This should be zero for file systems that do not support 64-bit offsets. - dwAccess
The access mode for the handle when the file lock is installed. This field must be updated by the FSD in the MyAcquireFileLockState function. Should be a combination of GENERIC_READ and GENERIC_WRITE. - lpcs
Critical section for this structure. This critical section must be entered in MyAquireFileLockState prior to updating other members of the structure. The critical section should not be exited until MyReleaseFileLockState is called.
Remarks
Most members of this structure are managed by FSDMGR lock helper functions and should be ignored by the FSD. The lpcs, dwAccess, dwPosLow, and dwPosHigh members are the only fields that should be directly accessed by the FSD. The rest should be ignored by the FSD.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Fsdmgr.h.
Link Library: Fsdmgr.lib.
See Also
FSDMGR_CreateFileHandle | MyFSD_CreateFileW | MyFSD_FindFirstFileW
Send Feedback on this topic to the authors