Compartilhar via


FILELOCKSTATE

A version of this page is also available for

Windows Embedded CE 6.0 R3

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-DWORD file offset for the handle when the file lock is installed. This field is updated by the file system driver (FSD) in the MyACQUIREFILELOCKSTATE 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 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 MyAcquireFileLockState function. A combination of GENERIC_READ and GENERIC_WRITE.
  • lpcs
    Critical section for this structure. This critical section must be entered in MyAquireFileLockState before updating other members of the structure. The critical section is not exited until MyReleaseFileLockState is 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

Reference

FSD Structures
FSDMGR_CreateFileHandle
MyFSD_CreateFileW
MyFSD_FindFirstFileW