FsRtlInitPerStreamContext會將FreeCallback例程的位址儲存在FSRTL_PER_STREAM_CONTEXT 結構的FreeCallback成員中。 FreeCallback例程是在 IRQL <= APC_LEVEL呼叫。 通常,它會在 IRQL PASSIVE_LEVEL呼叫。 注意FreeCallback例程無法以遞歸方式呼叫文件系統,或取得任何文件系統資源。 此外,此例程必須假設檔案數據流...
VOID FsRtlInitPerFileContext( FSRTL_PER_FILE_CONTEXT FileContext, PVOID OwnerId, PVOID InstanceId, PFREE_FUNCTION FreeCallback ); ParametersFileContext The FSRTL_PER_FILE_CONTEXT object to be initialized. OwnerId A pointer to a filter driver-allocated variable that uniquely identifies the owner...
FsRtlInitPerStreamContext stores the address of the FreeCallback routine in the FreeCallback member of the FSRTL_PER_STREAM_CONTEXT structure.The FreeCallback routine is called at IRQL <= APC_LEVEL. Usually, it is called at IRQL PASSIVE_LEVEL....
voidFsRtlInitPerStreamContext( _fc, _owner, _inst, _cb ); Parameters _fc Pointer to a caller-allocated FSRTL_PER_STREAM_CONTEXT structure to be used to maintain context information for a file stream. This structure can be used as is or embedded in a driver-defined per-stream contex...