The FsRtlInsertPerStreamContext routine associates a file system filter driver's per-stream context structure with a file stream.
NTSTATUS FsRtlInsertPerStreamContext( _In_ PFSRTL_ADVANCED_FCB_HEADER StreamContext, _In_ PFSRTL_PER_STREAM_CONTEXT Ptr );
Pointer to a FSRTL_PER_STREAM_CONTEXT structure that the filter driver has allocated and initialized. To initialize this structure, use the FsRtlInitPerStreamContext macro.
FsRtlInsertPerStreamContext returns one of the following NTSTATUS values:
||The call to FsRtlInsertPerStreamContext was successful.|
||The underlying file system does not support filter contexts.|
A file system filter driver calls FsRtlInsertPerStreamContext to associate its own per-stream context structure with a file stream. The per-stream context structure contains context information that the filter driver maintains for the file stream.
For more information, see Tracking Per-Stream Context in a Legacy File System Filter Driver.
|Windows version||This routine is available on Update Rollup for Windows 2000 Service Pack 4 (SP4) and on Windows XP and later.|
|Header||ntifs.h (include Ntifs.h)|