WDK Mini Filter Example
ctx/context.c File Reference
#include "pch.h"

Go to the source code of this file.


NTSTATUS CtxFindOrCreateFileContext (_In_ PFLT_CALLBACK_DATA Cbd, _In_ BOOLEAN CreateIfNotFound, _When_(CreateIfNotFound !=FALSE, _In_) _When_(CreateIfNotFound==FALSE, _In_opt_) PUNICODE_STRING FileName, _Outptr_ PCTX_FILE_CONTEXT *FileContext, _Out_opt_ PBOOLEAN ContextCreated)
NTSTATUS CtxCreateFileContext (_In_ PUNICODE_STRING FileName, _Outptr_ PCTX_FILE_CONTEXT *FileContext)
NTSTATUS CtxFindOrCreateStreamContext (_In_ PFLT_CALLBACK_DATA Cbd, _In_ BOOLEAN CreateIfNotFound, _Outptr_ PCTX_STREAM_CONTEXT *StreamContext, _Out_opt_ PBOOLEAN ContextCreated)
NTSTATUS CtxCreateStreamContext (_Outptr_ PCTX_STREAM_CONTEXT *StreamContext)
NTSTATUS CtxUpdateNameInStreamContext (_In_ PUNICODE_STRING DirectoryName, _Inout_ PCTX_STREAM_CONTEXT StreamContext)
NTSTATUS CtxCreateOrReplaceStreamHandleContext (_In_ PFLT_CALLBACK_DATA Cbd, _In_ BOOLEAN ReplaceIfExists, _Outptr_ PCTX_STREAMHANDLE_CONTEXT *StreamHandleContext, _Out_opt_ PBOOLEAN ContextReplaced)
NTSTATUS CtxCreateStreamHandleContext (_Outptr_ PCTX_STREAMHANDLE_CONTEXT *StreamHandleContext)
NTSTATUS CtxUpdateNameInStreamHandleContext (_In_ PUNICODE_STRING DirectoryName, _Inout_ PCTX_STREAMHANDLE_CONTEXT StreamHandleContext)

Function Documentation

◆ CtxCreateFileContext()

NTSTATUS CtxCreateFileContext ( _In_ PUNICODE_STRING  FileName,
_Outptr_ PCTX_FILE_CONTEXT FileContext 

Definition at line 215 of file ctx/context.c.

◆ CtxCreateOrReplaceStreamHandleContext()

NTSTATUS CtxCreateOrReplaceStreamHandleContext ( _In_ PFLT_CALLBACK_DATA  Cbd,
_In_ BOOLEAN  ReplaceIfExists,
_Outptr_ PCTX_STREAMHANDLE_CONTEXT StreamHandleContext,
_Out_opt_ PBOOLEAN  ContextReplaced 

Definition at line 582 of file ctx/context.c.

◆ CtxCreateStreamContext()

NTSTATUS CtxCreateStreamContext ( _Outptr_ PCTX_STREAM_CONTEXT StreamContext)

Definition at line 458 of file ctx/context.c.

◆ CtxCreateStreamHandleContext()

NTSTATUS CtxCreateStreamHandleContext ( _Outptr_ PCTX_STREAMHANDLE_CONTEXT StreamHandleContext)

Definition at line 764 of file ctx/context.c.

◆ CtxFindOrCreateFileContext()

NTSTATUS CtxFindOrCreateFileContext ( _In_ PFLT_CALLBACK_DATA  Cbd,
_In_ BOOLEAN  CreateIfNotFound,
_When_(CreateIfNotFound !=FALSE, _In_) _When_(CreateIfNotFound==FALSE, _In_opt_) PUNICODE_STRING  FileName,
_Outptr_ PCTX_FILE_CONTEXT FileContext,
_Out_opt_ PBOOLEAN  ContextCreated 

Definition at line 41 of file ctx/context.c.

◆ CtxFindOrCreateStreamContext()

NTSTATUS CtxFindOrCreateStreamContext ( _In_ PFLT_CALLBACK_DATA  Cbd,
_In_ BOOLEAN  CreateIfNotFound,
_Outptr_ PCTX_STREAM_CONTEXT StreamContext,
_Out_opt_ PBOOLEAN  ContextCreated 

Definition at line 284 of file ctx/context.c.

◆ CtxUpdateNameInStreamContext()

NTSTATUS CtxUpdateNameInStreamContext ( _In_ PUNICODE_STRING  DirectoryName,
_Inout_ PCTX_STREAM_CONTEXT  StreamContext 

Definition at line 524 of file ctx/context.c.

◆ CtxUpdateNameInStreamHandleContext()

NTSTATUS CtxUpdateNameInStreamHandleContext ( _In_ PUNICODE_STRING  DirectoryName,
_Inout_ PCTX_STREAMHANDLE_CONTEXT  StreamHandleContext 

Definition at line 832 of file ctx/context.c.

Social Network

Services Overview

Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.

Contact Us

You are welcome to contact us for salse or partnership.

Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com