Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

FsRtlFastUnlockAll function (ntifs.h)

The FsRtlFastUnlockAll routine releases all byte-range locks that were acquired by the specified process for a file.

Syntax

NTSTATUS FsRtlFastUnlockAll(
 [in] PFILE_LOCK FileLock,
 [in] PFILE_OBJECT FileObject,
 [in] PEPROCESS ProcessId,
 [in, optional] PVOID Context
);

Parameters

[in] FileLock

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

[in] FileObject

Pointer to the file object for the file.

[in] ProcessId

Pointer to the process ID for the process.

[in, optional] Context

Optional context pointer to be used when completing IRPs.

Return value

FsRtlFastUnlockAll returns STATUS_SUCCESS or an error status code such as STATUS_RANGE_NOT_LOCKED.

Remarks

After releasing the byte-range locks, FsRtlFastUnlockAll completes any currently queued lock IRPs that can now be completed.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

FsRtlAllocateFileLock

FsRtlInitializeFileLock


Feedback

Was this page helpful?

Additional resources