mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00

* Recognize the option /CRASHDUMP on the kernel command line to specify the type of dump desired. * Added a new driver (diskdump) which wraps the miniport for the disk containing the pagefile and does the crash dump i/o. * Added a FSCTL to get the mapping between LCNs and disk offsets so crash dumps don't need to go through the filesystem. svn path=/trunk/; revision=5887
35 lines
1 KiB
C
35 lines
1 KiB
C
#ifndef __INCLUDE_NAPI_CORE_H
|
|
#define __INCLUDE_NAPI_CORE_H
|
|
|
|
#include "../ntoskrnl/include/internal/ke.h"
|
|
#include <ddk/ntddscsi.h>
|
|
|
|
#define MM_CORE_DUMP_HEADER_MAGIC (0xdeafbead)
|
|
#define MM_CORE_DUMP_HEADER_VERSION (0x1)
|
|
|
|
#define MM_CORE_DUMP_TYPE_NONE (0x0)
|
|
#define MM_CORE_DUMP_TYPE_MINIMAL (0x1)
|
|
#define MM_CORE_DUMP_TYPE_FULL (0x2)
|
|
|
|
typedef struct _MM_CORE_DUMP_HEADER
|
|
{
|
|
ULONG Magic;
|
|
ULONG Version;
|
|
ULONG Type;
|
|
KTRAP_FRAME TrapFrame;
|
|
ULONG BugCheckCode;
|
|
ULONG BugCheckParameters[4];
|
|
PVOID FaultingStackBase;
|
|
ULONG FaultingStackSize;
|
|
ULONG PhysicalMemorySize;
|
|
} MM_CORE_DUMP_HEADER, *PMM_CORE_DUMP_HEADER;
|
|
|
|
typedef struct MM_CORE_DUMP_FUNCTIONS
|
|
{
|
|
NTSTATUS STDCALL (*DumpPrepare)(PDEVICE_OBJECT DeviceObject, PDUMP_POINTERS DumpPointers);
|
|
NTSTATUS STDCALL (*DumpInit)(VOID);
|
|
NTSTATUS STDCALL (*DumpWrite)(LARGE_INTEGER Address, PMDL Mdl);
|
|
NTSTATUS STDCALL (*DumpFinish)(VOID);
|
|
} MM_CORE_DUMP_FUNCTIONS, *PMM_CORE_DUMP_FUNCTIONS;
|
|
|
|
#endif /* __INCLUDE_NAPI_CORE_H */
|