// ntdddump.h
typedef struct _FILTER_INITIALIZATION_DATA {
ULONG MajorVersion;
ULONG MinorVersion;
PDUMP_START DumpStart;
PDUMP_WRITE DumpWrite;
PDUMP_FINISH DumpFinish;
PDUMP_UNLOAD DumpUnload;
PVOID DumpData;
ULONG MaxPagesPerWrite;
ULONG Flags;
PDUMP_READ DumpRead;
PDUMP_PRE_READ_WRITE DumpPreReadWrite;
} FILTER_INITIALIZATION_DATA, *PFILTER_INITIALIZATION_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
The filter driver fills in a FILTER_INITIALIZATION_DATA structure and returns it to the crash dump driver.
MajorVersionSet to one of the following major version values:
MinorVersionSet to DUMP_FILTER_MINOR_VERSION.
DumpStartA pointer to the dump initialization routine. This routine is called when the crash dump starts.
DumpWriteA pointer to the write routine. This routine is called before every crash dump write request.
DumpFinishA pointer to the dump finish routine. This routine is called when the crash dump is finished.
DumpUnloadA pointer to the dump unload routine. This routine is called before the driver is unloaded.
DumpDataThe filter driver can pass a pointer to internal context data in this member. This pointer is passed back to the filter driver in a FILTER_EXTENSION structure during each callback.
MaxPagesPerWriteThe maximum number of pages for each dump read or write request.
FlagsA set of flags for dump filter initialization. This value is set to either 0 or the following:
| Value | Meaning |
|---|---|
| DUMP_FILTER_FLAG_SYSTEM_SUPPORT_READ | The dump filter supports filtering reads, and a read callback routine is set for DumpRead. This flag is supported starting in Windows 8. |
| DUMP_FILTER_CRITICAL | Fail the filter initialization immediately if the dump filter driver's DriverEntry routine does not return STATUS_SUCCESS. This flag is supported starting in Windows 8. |
DumpReadA pointer to the read routine. This routine is called after every crash dump read request. This member is available starting in Windows 8.
For a dump filter driver to support read filtering, the following settings are required:
If any of these members are not set, the dump filter driver will be marked as not supporting dump reads by the crashdump stack.