19#define RESET_REGISTRATION(basic) \
21 RtlZeroMemory(&FilterRegistration, sizeof(FLT_REGISTRATION)); \
23 FilterRegistration.Size = sizeof(FLT_REGISTRATION); \
24 FilterRegistration.Version = FLT_REGISTRATION_VERSION; \
28#define RESET_UNLOAD(DO) DO->DriverUnload = NULL;
203 DPRINT(
"FltMgrReg Entry!\n");
204 trace(
"Entered FltMgrReg tests\n");
207 *
Flags = TESTENTRY_NO_ALL;
232 _In_ FLT_FILESYSTEM_TYPE VolumeFilesystemType,
VOID FLTAPI FltUnregisterFilter(_In_ PFLT_FILTER Filter)
NTSTATUS NTAPI FltRegisterFilter(_In_ PDRIVER_OBJECT DriverObject, _In_ const FLT_REGISTRATION *Registration, _Out_ PFLT_FILTER *RetFilter)
#define ok_eq_pointer(value, expected)
#define ok_eq_hex(value, expected)
#define ok_eq_long(value, expected)
ULONG RtlCompareUnicodeString(PUNICODE_STRING s1, PUNICODE_STRING s2, BOOLEAN UpCase)
_Must_inspect_result_ _Inout_opt_ PUNICODE_STRING VolumeName
ULONG FLT_INSTANCE_SETUP_FLAGS
ULONG FLT_FILTER_UNLOAD_FLAGS
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
ULONG FLT_INSTANCE_QUERY_TEARDOWN_FLAGS
_Must_inspect_result_ _Inout_ PFLT_VOLUME _In_ PCUNICODE_STRING Altitude
NTSTATUS(FLTAPI * PFLT_FILTER_UNLOAD_CALLBACK)(FLT_FILTER_UNLOAD_FLAGS Flags)
VOID TestQueryTeardown(_In_ PCFLT_RELATED_OBJECTS FltObjects, _In_ FLT_INSTANCE_QUERY_TEARDOWN_FLAGS Flags)
static FLT_REGISTRATION FilterRegistration
NTSTATUS TestInstanceSetup(_In_ PCFLT_RELATED_OBJECTS FltObjects, _In_ FLT_INSTANCE_SETUP_FLAGS Flags, _In_ DEVICE_TYPE VolumeDeviceType, _In_ FLT_FILESYSTEM_TYPE VolumeFilesystemType, _In_ PUNICODE_STRING VolumeName, _In_ ULONG SectorSize, _In_ ULONG ReportedSectorSize)
VOID TestFilterUnload(IN ULONG Flags)
#define RESET_REGISTRATION(basic)
static PDRIVER_OBJECT TestDriverObject
NTSTATUS TestEntry(IN PDRIVER_OBJECT DriverObject, IN PCUNICODE_STRING RegistryPath, OUT PCWSTR *DeviceName, IN OUT INT *Flags)
static PFLT_FILTER TestFilter
BOOLEAN TestFltRegisterFilter(_In_ PDRIVER_OBJECT DriverObject)
NTSTATUS FLTAPI TestRegFilterUnload(_In_ FLT_FILTER_UNLOAD_FLAGS Flags)
#define KmtEndSeh(ExpectedStatus)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define UNREFERENCED_PARAMETER(P)
#define STATUS_FLT_DO_NOT_ATTACH
#define STATUS_FLT_INSTANCE_ALTITUDE_COLLISION
PFLT_FILTER_UNLOAD_CALLBACK OldDriverUnload
PFLT_FILTER_UNLOAD_CALLBACK FilterUnload
UNICODE_STRING DefaultAltitude
volatile FLT_OBJECT_FLAGS Flags
PFLT_FILTER_UNLOAD_CALLBACK FilterUnloadCallback
#define STATUS_INVALID_PARAMETER
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
_Must_inspect_result_ _In_ ULONG Flags
DRIVER_UNLOAD * PDRIVER_UNLOAD