Bewerken

Delen via


FsRtlFastCheckLockForWrite function (ntifs.h)

The FsRtlFastCheckLockForWrite routine determines whether the specified process has write access to a locked byte range of a file.

Syntax

BOOLEAN FsRtlFastCheckLockForWrite(
  [in] PFILE_LOCK     FileLock,
  [in] PLARGE_INTEGER StartingByte,
  [in] PLARGE_INTEGER Length,
  [in] ULONG          Key,
  [in] PVOID          FileObject,
  [in] PVOID          ProcessId
);

Parameters

[in] FileLock

A pointer to the FILE_LOCK structure for the file. This structure must have been initialized by a previous call to FsRtlAllocateFileLock or FsRtlInitializeFileLock.

[in] StartingByte

A pointer to a variable that specifies the starting byte offset within the file of the byte range to check.

[in] Length

A pointer to a variable that specifies the length, in bytes, of the range to check.

[in] Key

The key for the byte range lock.

[in] FileObject

A pointer to the file object for the file.

[in] ProcessId

A pointer to the EPROCESS for the process.

Return value

The FsRtlFastCheckLockForWrite routine returns TRUE if the specified process has write access, FALSE otherwise.

Requirements

Requirement Value
Minimum supported client Windows 2000
Target Platform Universal
Header ntifs.h (include FltKernel.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

FsRtlAllocateFileLock

FsRtlFastCheckLockForRead

FsRtlInitializeFileLock