ReactOS 0.4.16-dev-334-g4d9f67c
|
#include <ntifs.h>
#include <ndk/ketypes.h>
#include <fltkernel.h>
#include <kmt_test.h>
#include <debug.h>
#include <kmt_public.h>
Go to the source code of this file.
Classes | |
struct | _FILTER_DATA |
Macros | |
#define | KMT_DEFINE_TEST_FUNCTIONS |
#define | NDEBUG |
#define | KMTEST_FILTER_POOL_TAG 'fTMK' |
Typedefs | |
typedef struct _FILTER_DATA | FILTER_DATA |
typedef struct _FILTER_DATA * | PFILTER_DATA |
Functions | |||||||||
DriverUnload | |||||||||
Driver cleanup funtion.
| |||||||||
NTSTATUS FLTAPI | FilterUnload (_In_ FLT_FILTER_UNLOAD_FLAGS Flags) | ||||||||
FilterInstanceSetup | |||||||||
Volume attach routine
| |||||||||
NTSTATUS FLTAPI | FilterInstanceSetup (_In_ PCFLT_RELATED_OBJECTS FltObjects, _In_ FLT_INSTANCE_SETUP_FLAGS Flags, _In_ DEVICE_TYPE VolumeDeviceType, _In_ FLT_FILESYSTEM_TYPE VolumeFilesystemType) | ||||||||
FilterQueryTeardown | |||||||||
Volume detatch routine
| |||||||||
NTSTATUS FLTAPI | FilterQueryTeardown (_In_ PCFLT_RELATED_OBJECTS FltObjects, _In_ FLT_INSTANCE_QUERY_TEARDOWN_FLAGS Flags) | ||||||||
FLT_PREOP_CALLBACK_STATUS FLTAPI | FilterPreOperation (_Inout_ PFLT_CALLBACK_DATA Data, _In_ PCFLT_RELATED_OBJECTS FltObjects, _Outptr_result_maybenull_ PVOID *CompletionContext) | ||||||||
FLT_POSTOP_CALLBACK_STATUS FLTAPI | FilterPostOperation (_Inout_ PFLT_CALLBACK_DATA Data, _In_ PCFLT_RELATED_OBJECTS FltObjects, _In_opt_ PVOID CompletionContext, _In_ FLT_POST_OPERATION_FLAGS Flags) | ||||||||
NTSTATUS | KmtFilterRegisterCallbacks (_In_ CONST FLT_OPERATION_REGISTRATION *OperationRegistration) | ||||||||
NTSTATUS | KmtFilterRegisterContexts (_In_ PFLT_CONTEXT_REGISTRATION ContextRegistration, _In_ PVOID Callback) | ||||||||
NTSTATUS | KmtFilterRegisterComms (_In_ PFLT_CONNECT_NOTIFY ConnectNotifyCallback, _In_ PFLT_DISCONNECT_NOTIFY DisconnectNotifyCallback, _In_opt_ PFLT_MESSAGE_NOTIFY MessageNotifyCallback, _In_ LONG MaxClientConnections) | ||||||||
DriverEntry | |||||||||
Driver entry point.
| |||||||||
NTSTATUS NTAPI | DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) | ||||||||
Variables | |
DRIVER_INITIALIZE | DriverEntry |
static PDRIVER_OBJECT | TestDriverObject |
static PDEVICE_OBJECT | KmtestDeviceObject |
static FILTER_DATA | FilterData |
static PFLT_OPERATION_REGISTRATION | Callbacks = NULL |
static ULONG | CallbacksCount = 0 |
static PFLT_CONTEXT_REGISTRATION | Contexts = NULL |
static PFLT_CONNECT_NOTIFY | FilterConnect = NULL |
static PFLT_DISCONNECT_NOTIFY | FilterDisconnect = NULL |
static PFLT_MESSAGE_NOTIFY | FilterMessage = NULL |
static LONG | MaxConnections = 0 |
FLT_REGISTRATION | FilterRegistration |
#define KMT_DEFINE_TEST_FUNCTIONS |
Definition at line 13 of file kmtest_fsminifilter.c.
#define KMTEST_FILTER_POOL_TAG 'fTMK' |
Definition at line 21 of file kmtest_fsminifilter.c.
#define NDEBUG |
Definition at line 16 of file kmtest_fsminifilter.c.
typedef struct _FILTER_DATA FILTER_DATA |
typedef struct _FILTER_DATA * PFILTER_DATA |
NTSTATUS NTAPI DriverEntry | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PUNICODE_STRING | RegistryPath | ||
) |
Definition at line 130 of file kmtest_fsminifilter.c.
NTSTATUS FLTAPI FilterInstanceSetup | ( | _In_ PCFLT_RELATED_OBJECTS | FltObjects, |
_In_ FLT_INSTANCE_SETUP_FLAGS | Flags, | ||
_In_ DEVICE_TYPE | VolumeDeviceType, | ||
_In_ FLT_FILESYSTEM_TYPE | VolumeFilesystemType | ||
) |
Definition at line 328 of file kmtest_fsminifilter.c.
FLT_POSTOP_CALLBACK_STATUS FLTAPI FilterPostOperation | ( | _Inout_ PFLT_CALLBACK_DATA | Data, |
_In_ PCFLT_RELATED_OBJECTS | FltObjects, | ||
_In_opt_ PVOID | CompletionContext, | ||
_In_ FLT_POST_OPERATION_FLAGS | Flags | ||
) |
Definition at line 543 of file kmtest_fsminifilter.c.
Referenced by KmtFilterRegisterCallbacks().
FLT_PREOP_CALLBACK_STATUS FLTAPI FilterPreOperation | ( | _Inout_ PFLT_CALLBACK_DATA | Data, |
_In_ PCFLT_RELATED_OBJECTS | FltObjects, | ||
_Outptr_result_maybenull_ PVOID * | CompletionContext | ||
) |
Definition at line 515 of file kmtest_fsminifilter.c.
Referenced by KmtFilterRegisterCallbacks().
NTSTATUS FLTAPI FilterQueryTeardown | ( | _In_ PCFLT_RELATED_OBJECTS | FltObjects, |
_In_ FLT_INSTANCE_QUERY_TEARDOWN_FLAGS | Flags | ||
) |
Definition at line 419 of file kmtest_fsminifilter.c.
NTSTATUS FLTAPI FilterUnload | ( | _In_ FLT_FILTER_UNLOAD_FLAGS | Flags | ) |
Definition at line 273 of file kmtest_fsminifilter.c.
NTSTATUS KmtFilterRegisterCallbacks | ( | _In_ CONST FLT_OPERATION_REGISTRATION * | OperationRegistration | ) |
Definition at line 438 of file kmtest_fsminifilter.c.
Referenced by TestEntry().
NTSTATUS KmtFilterRegisterComms | ( | _In_ PFLT_CONNECT_NOTIFY | ConnectNotifyCallback, |
_In_ PFLT_DISCONNECT_NOTIFY | DisconnectNotifyCallback, | ||
_In_opt_ PFLT_MESSAGE_NOTIFY | MessageNotifyCallback, | ||
_In_ LONG | MaxClientConnections | ||
) |
Definition at line 496 of file kmtest_fsminifilter.c.
Referenced by TestEntry().
NTSTATUS KmtFilterRegisterContexts | ( | _In_ PFLT_CONTEXT_REGISTRATION | ContextRegistration, |
_In_ PVOID | Callback | ||
) |
Definition at line 485 of file kmtest_fsminifilter.c.
|
static |
Definition at line 41 of file kmtest_fsminifilter.c.
Referenced by FilterPostOperation(), FilterPreOperation(), FilterUnload(), and KmtFilterRegisterCallbacks().
|
static |
Definition at line 42 of file kmtest_fsminifilter.c.
Referenced by FilterPostOperation(), FilterPreOperation(), FilterUnload(), and KmtFilterRegisterCallbacks().
|
static |
Definition at line 43 of file kmtest_fsminifilter.c.
Referenced by KmtFilterRegisterContexts().
DRIVER_INITIALIZE DriverEntry |
Definition at line 35 of file kmtest_fsminifilter.c.
|
static |
Definition at line 45 of file kmtest_fsminifilter.c.
Referenced by DriverEntry(), and KmtFilterRegisterComms().
|
static |
Definition at line 40 of file kmtest_fsminifilter.c.
Referenced by DriverEntry(), and FilterUnload().
|
static |
Definition at line 46 of file kmtest_fsminifilter.c.
Referenced by DriverEntry(), and KmtFilterRegisterComms().
|
static |
Definition at line 47 of file kmtest_fsminifilter.c.
Referenced by DriverEntry(), and KmtFilterRegisterComms().
FLT_REGISTRATION FilterRegistration |
Definition at line 91 of file kmtest_fsminifilter.c.
Referenced by DriverEntry().
|
static |
Definition at line 39 of file kmtest_fsminifilter.c.
Referenced by DriverEntry().
|
static |
Definition at line 48 of file kmtest_fsminifilter.c.
Referenced by _IRQL_requires_max_(), DriverEntry(), and KmtFilterRegisterComms().
|
static |
Definition at line 38 of file kmtest_fsminifilter.c.
Referenced by DriverEntry().