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 function authorizes read or write requests.
Syntax
BOOL FSDMGR_TestFileLock( PACQUIREFILELOCKSTATE pAcquireFileLockState, PRELEASEFILELOCKSTATE pReleaseFileLockState, DWORD dwHandle, BOOL fRead, DWORD cbReadWrite ); |
Parameters
- pAcquireFileLockState
-
Pointer to a PACQUIREFILELOCKSTATEfunction.
- pReleaseFileLockState
-
Pointer to a PRELEASEFILELOCKSTATEfunction.
- dwHandle
-
Handle to the specified file.
- fRead
-
Specifies whether the file can be read.
- cbReadWrite
-
Specifies whether the file can be read and written to.
Return Value
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
The FSD can simply pass all parameters received by MyFSD_LockFileExto this helper function, along with two helper function pointers, PACQUIREFILELOCKSTATEand PRELEASEFILELOCKSTATE, implemented by the FSD.
This function is a Lock Manager function provided by FSDMGR to assist FSDs with implementing the MyFSD_LockFileExand the MyFSD_UnLockFileExfunctions.
Requirements
Header | lockmgr.h |
Library | Fsdmgr.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |
Windows Mobile | Windows Mobile 6 and later |