Download EaseFilter Filter Driver SDK Setup File Download EaseFilter Filter Driver SDK Zip File
The FltGetStreamContext routine retrieves a context that was set for a file stream by a given minifilter driver instance.
NTSTATUS FLTAPI FltGetStreamContext( PFLT_INSTANCE Instance, PFILE_OBJECT FileObject, PFLT_CONTEXT *Context );
Opaque instance pointer for the minifilter driver instance whose context is to be retrieved.
Pointer to a file object for the stream.
Pointer to a caller-allocated variable that receives the address of the context.
FltGetStreamContext returns STATUS_SUCCESS or an appropriate NTSTATUS value, such as one of the following:
||No matching context was found. This is an error code.|
||The file system does not support per-stream contexts for this file stream. This is an error code.|
FltGetStreamContext retrieves a context that was set for a file stream by a given minifilter driver instance.
FltGetStreamContext increments the reference count on the context that the Context parameter points to. When this context pointer is no longer needed, the caller must decrement its reference count by calling FltReleaseContext. Thus every successful call to FltGetStreamContext must be matched by a subsequent call to FltReleaseContext.
To set a context for a file stream, call FltSetStreamContext.
To allocate a new context, call FltAllocateContext.
|Header||fltkernel.h (include Fltkernel.h)|