FsRtlFastUnlockAll 函式 (ntifs.h)

FsRtlFastUnlockAll 例程會釋放檔案指定進程取得的所有位元組範圍鎖定。

語法

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

參數

[in] FileLock

檔案FILE_LOCK結構的指標。 此結構必須由先前呼叫 FsRtlAllocateFileLockFsRtlInitializeFileLock 來初始化。

[in] FileObject

檔案物件的指標。

[in] ProcessId

進程的進程標識碼指標。

[in, optional] Context

完成 IRP 時要使用的選擇性內容指標。

傳回值

FsRtlFastUnlockAll 會傳回STATUS_SUCCESS或錯誤狀態代碼,例如 STATUS_RANGE_NOT_LOCKED。

備註

釋放位元組範圍鎖定之後, FsRtlFastUnlockAll 會 完成任何目前可完成的佇列鎖定 IRP。

規格需求

需求
目標平台 Universal
標頭 ntifs.h (包含 Ntifs.h)
程式庫 NtosKrnl.lib
Dll NtosKrnl.exe
IRQL <= APC_LEVEL
DDI 合規性規則 HwStorPortProhibitedDIS (storport)

另請參閱

FsRtlAllocateFileLock

FsRtlInitializeFileLock