MINIDUMP_TYPE求解释

typedef enum _MINIDUMP_TYPE {
  MiniDumpNormal = 0x00000000,
  MiniDumpWithDataSegs = 0x00000001,
  MiniDumpWithFullMemory = 0x00000002,
  MiniDumpWithHandleData = 0x00000004,
  MiniDumpFilterMemory = 0x00000008,
  MiniDumpScanMemory = 0x00000010,
  MiniDumpWithUnloadedModules = 0x00000020,
  MiniDumpWithIndirectlyReferencedMemory = 0x00000040,
  MiniDumpFilterModulePaths = 0x00000080,
  MiniDumpWithProcessThreadData = 0x00000100,
  MiniDumpWithPrivateReadWriteMemory = 0x00000200,
  MiniDumpWithoutOptionalData = 0x00000400,
  MiniDumpWithFullMemoryInfo = 0x00000800,
  MiniDumpWithThreadInfo = 0x00001000,
  MiniDumpWithCodeSegs = 0x00002000,
  MiniDumpWithoutAuxiliaryState = 0x00004000,
  MiniDumpWithFullAuxiliaryState = 0x00008000,
  MiniDumpWithPrivateWriteCopyMemory = 0x00010000,
  MiniDumpIgnoreInaccessibleMemory = 0x00020000,
  MiniDumpWithTokenInformation = 0x00040000 
} MINIDUMP_TYPE;

哪个大虾 帮解释下里面每个类型的具体意思啊

作者: sssddd269143   发布时间: 2010-08-07

这就是定义了一些常量,你需要它是什么意思就是什么意思

作者: adamwyb   发布时间: 2010-08-07

BOOL WINAPI MiniDumpWriteDump(
  __in HANDLE hProcess,
  __in DWORD ProcessId,
  __in HANDLE hFile,
  __in MINIDUMP_TYPE DumpType,
  __in PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam,
  __in PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam,
  __in PMINIDUMP_CALLBACK_INFORMATION CallbackParam
);
这个结构体保存的 是minidump的 类型啊 我是想知道如果设置这些类型生成的 dmp有什么区别 也就是每个类型的具体意思

作者: sssddd269143   发布时间: 2010-08-07

直接用谷歌翻译了下 是不是这个意思 高手们

MiniDumpNormal 
Include just the information necessary to capture stack traces for all existing threads in a process.仅包含必要的信息来捕获堆栈进程中的所有现有线程的痕迹。 

MiniDumpWithDataSegs MiniDumpWithDataSegs 
Include the data sections from all loaded modules.包括从所有已加载模块的数据部分。 This results in the inclusion of global variables, which can make the minidump file significantly larger.在全局变量,它可以使转储文件包含这样的结果大得多。 For per-module control, use the ModuleWriteDataSeg enumeration value from MODULE_WRITE_FLAGS .对于每个模块的控制,使用枚举值ModuleWriteDataSeg MODULE_WRITE_FLAGS 。 

MiniDumpWithFullMemory MiniDumpWithFullMemory 
Include all accessible memory in the process.在这个过程中包括所有的内存访问。 The raw memory data is included at the end, so that the initial structures can be mapped directly without the raw memory information.原始内存数据是包含在最后,使最初的结构可以映射无原始信息直接内存。 This option can result in a very large file.此选项可能会导致一个非常大的文件。 

MiniDumpWithHandleData MiniDumpWithHandleData 
Include high-level information about the operating system handles that are active when the minidump is made.包括高层次的有关操作系统的信息处理是积极的转储时作出。 

MiniDumpFilterMemory MiniDumpFilterMemory 
Stack and backing store memory written to the minidump file should be filtered to remove all but the pointer values necessary to reconstruct a stack trace.栈和后备存储内存写入到转储文件应过滤,删除所有的指针值,但要重建一个堆栈跟踪。 

MiniDumpScanMemory MiniDumpScanMemory 
Stack and backing store memory should be scanned for pointer references to modules in the module list.栈和后备存储内存应该扫描模块中的指针引用列表模块。 If a module is referenced by stack or backing store memory, the ModuleWriteFlags member of the MINIDUMP_CALLBACK_OUTPUT structure is set to ModuleReferencedByMemory.如果一个模块所引用的内存堆栈或备份储存,该ModuleWriteFlags成员MINIDUMP_CALLBACK_OUTPUT结构设置为ModuleReferencedByMemory。 

MiniDumpWithUnloadedModules MiniDumpWithUnloadedModules 
Include information from the list of modules that were recently unloaded, if this information is maintained by the operating system.包括从该信息最近卸载模块列表,如果该信息是由操作系统维护。 

Windows Server 2003 and Windows XP: The operating system does not maintain information for unloaded modules until Windows Server 2003 with SP1 and Windows XP with SP2. Windows Server 2003和Windows XP中:操作系统并没有为卸载模块的信息,直到Windows服务器2003 SP1和Windows XP SP2的。 
DbgHelp 5.1: This value is not supported. DbgHelp 5.1:这个值是不支持。 
MiniDumpWithIndirectlyReferencedMemory MiniDumpWithIndirectlyReferencedMemory 
Include pages with data referenced by locals or other stack memory.由当地人或其他堆栈内存中引用的数据包括网页。 This option can increase the size of the minidump file significantly.这个选项可以增加转储文件的大小显着。 

DbgHelp 5.1: This value is not supported. DbgHelp 5.1:这个值是不支持。 
MiniDumpFilterModulePaths MiniDumpFilterModulePaths 
Filter module paths for information such as user names or important directories.如用户名或目录的信息过滤模块的重要途径。 This option may prevent the system from locating the image file and should be used only in special situations.此选项可能会阻止定位系统和图像文件只应在特殊情况下使用。 

DbgHelp 5.1: This value is not supported. DbgHelp 5.1:这个值是不支持。 
MiniDumpWithProcessThreadData MiniDumpWithProcessThreadData 
Include complete per-process and per-thread information from the operating system.包括完整的每个进程和每个线程信息从操作系统。 

DbgHelp 5.1: This value is not supported. DbgHelp 5.1:这个值是不支持。 
MiniDumpWithPrivateReadWriteMemory MiniDumpWithPrivateReadWriteMemory 
Scan the virtual address space for PAGE_READWRITE memory to be included.扫描为PAGE_READWRITE内存的虚拟地址空间应包括在内。 

DbgHelp 5.1: This value is not supported. DbgHelp 5.1:这个值是不支持。 
MiniDumpWithoutOptionalData MiniDumpWithoutOptionalData 
Reduce the data that is dumped by eliminating memory regions that are not essential to meet criteria specified for the dump.减少的是通过消除内存区域是没有必要满足指定的标准倾倒垃圾场数据。 This can avoid dumping memory that may contain data that is private to the user.这可避免倾销内存中可能包含的数据是私人用户。 However, it is not a guarantee that no private information will be present.但是,它不是一个保证没有私人信息将出席会议。 

DbgHelp 6.1 and earlier: This value is not supported. DbgHelp 6.1和更早的版本:这个值是不支持。 
MiniDumpWithFullMemoryInfo MiniDumpWithFullMemoryInfo 
Include memory region information.包括内存区域的信息。 For more information, see MINIDUMP_MEMORY_INFO_LIST .欲了解更多信息,请参阅MINIDUMP_MEMORY_INFO_LIST 。 

DbgHelp 6.1 and earlier: This value is not supported. DbgHelp 6.1和更早的版本:这个值是不支持。 
MiniDumpWithThreadInfo MiniDumpWithThreadInfo 
Include thread state information.包括线程的状态信息。 For more information, see MINIDUMP_THREAD_INFO_LIST .欲了解更多信息,请参阅MINIDUMP_THREAD_INFO_LIST 。 

DbgHelp 6.1 and earlier: This value is not supported. DbgHelp 6.1和更早的版本:这个值是不支持。 
MiniDumpWithCodeSegs MiniDumpWithCodeSegs 
Include all code and code-related sections from loaded modules to capture executable content.包括所有代码和加载的模块代码捕捉可执行文件相关部分的内容。 For per-module control, use the ModuleWriteCodeSegs enumeration value from MODULE_WRITE_FLAGS .对于每个模块的控制,使用枚举值ModuleWriteCodeSegs MODULE_WRITE_FLAGS 。 

DbgHelp 6.1 and earlier: This value is not supported. DbgHelp 6.1和更早的版本:这个值是不支持。 
MiniDumpWithoutAuxiliaryState MiniDumpWithoutAuxiliaryState 
Turns off secondary auxiliary-supported memory gathering.关闭二级辅助支持的内存聚会。 

MiniDumpWithFullAuxiliaryState MiniDumpWithFullAuxiliaryState 
Requests that auxiliary data providers include their state in the dump image; the state data that is included is provider dependent.要求提供辅助数据包括他们的状态转储映像,国家即包含数据提供商的依赖。 This option can result in a large dump image.此选项可能会导致一个大型排土场的形象。 

MiniDumpWithPrivateWriteCopyMemory MiniDumpWithPrivateWriteCopyMemory 
Scans the virtual address space for PAGE_WRITECOPY memory to be included.扫描为PAGE_WRITECOPY内存的虚拟地址空间应包括在内。 

Prior to DbgHelp 6.1: This value is not supported. 在此之前DbgHelp 6.1:这个值是不支持。 
MiniDumpIgnoreInaccessibleMemory MiniDumpIgnoreInaccessibleMemory 
If you specify MiniDumpWithFullMemory, the MiniDumpWriteDump function will fail if the function cannot read the memory regions; however, if you include MiniDumpIgnoreInaccessibleMemory, the MiniDumpWriteDump function will ignore the memory read failures and continue to generate the dump.如果您指定MiniDumpWithFullMemory,该MiniDumpWriteDump函数将失败,如果该函数无法读取内存区域,但是,如果您包括MiniDumpIgnoreInaccessibleMemory,该MiniDumpWriteDump函数将忽略内存读取失败,并继续生成转储。 Note that the inaccessible memory regions are not included in the dump.请注意,无法进入的区域内存转储中不包括在内。 

Prior to DbgHelp 6.1: This value is not supported. 在此之前DbgHelp 6.1:这个值是不支持。 
MiniDumpWithTokenInformation MiniDumpWithTokenInformation 
Adds security token related data.添加安全令牌的相关数据。 This will make the "!token" extension work when processing a user-mode dump.这将使“!令牌”延长工作时,处理一个用户模式转储。 

作者: sssddd269143   发布时间: 2010-08-07