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

Go to the source code of this file.

Functions

NTSTATUS CgCreateFileContext (_Outptr_ PCG_FILE_CONTEXT *FileContext)
 
VOID CgFileContextCleanup (_In_ PFLT_CONTEXT Context, _In_ FLT_CONTEXT_TYPE ContextType)
 
VOID CgTransactionContextCleanup (_In_ PFLT_CONTEXT Context, _In_ FLT_CONTEXT_TYPE ContextType)
 
NTSTATUS CgGetFileId (_In_ PFLT_INSTANCE Instance, _In_ PFILE_OBJECT FileObject, _Out_ PCG_FILE_REFERENCE FileId)
 
NTSTATUS CgFindOrCreateFileContext (_In_ PFLT_CALLBACK_DATA Cbd, _Outptr_ PCG_FILE_CONTEXT *FileContext)
 
NTSTATUS CgFindOrCreateTransactionContext (_In_ PCFLT_RELATED_OBJECTS FltObjects, _Outptr_ PCG_TRANSACTION_CONTEXT *TransactionContext)
 

Variables

const FLT_CONTEXT_REGISTRATION ContextRegistration []
 

Function Documentation

◆ CgCreateFileContext()

NTSTATUS CgCreateFileContext ( _Outptr_ PCG_FILE_CONTEXT FileContext)

Definition at line 420 of file change/context.c.

◆ CgFileContextCleanup()

VOID CgFileContextCleanup ( _In_ PFLT_CONTEXT  Context,
_In_ FLT_CONTEXT_TYPE  ContextType 
)

Definition at line 74 of file change/context.c.

◆ CgFindOrCreateFileContext()

NTSTATUS CgFindOrCreateFileContext ( _In_ PFLT_CALLBACK_DATA  Cbd,
_Outptr_ PCG_FILE_CONTEXT FileContext 
)

Definition at line 238 of file change/context.c.

◆ CgFindOrCreateTransactionContext()

NTSTATUS CgFindOrCreateTransactionContext ( _In_ PCFLT_RELATED_OBJECTS  FltObjects,
_Outptr_ PCG_TRANSACTION_CONTEXT TransactionContext 
)

Definition at line 476 of file change/context.c.

◆ CgGetFileId()

NTSTATUS CgGetFileId ( _In_ PFLT_INSTANCE  Instance,
_In_ PFILE_OBJECT  FileObject,
_Out_ PCG_FILE_REFERENCE  FileId 
)

Definition at line 161 of file change/context.c.

◆ CgTransactionContextCleanup()

VOID CgTransactionContextCleanup ( _In_ PFLT_CONTEXT  Context,
_In_ FLT_CONTEXT_TYPE  ContextType 
)

Definition at line 122 of file change/context.c.

Variable Documentation

◆ ContextRegistration

const FLT_CONTEXT_REGISTRATION ContextRegistration[]
Initial value:
= {
{ FLT_FILE_CONTEXT,
0,
{ FLT_TRANSACTION_CONTEXT,
0,
{ FLT_CONTEXT_END }
}
#define CG_FILE_CONTEXT_TAG
#define CG_TRANSACTION_CONTEXT_TAG
VOID CgFileContextCleanup(_In_ PFLT_CONTEXT Context, _In_ FLT_CONTEXT_TYPE ContextType)
VOID CgTransactionContextCleanup(_In_ PFLT_CONTEXT Context, _In_ FLT_CONTEXT_TYPE ContextType)
#define CG_FILE_CONTEXT_SIZE
#define CG_TRANSACTION_CONTEXT_SIZE

Definition at line 55 of file change/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