创建最大内存的转储文件

来源:互联网 发布:ghost远控源码 编辑:程序博客网 时间:2024/05/17 05:58

为了从4G或更大内存的电脑上获得完整dump文件,必须在Boot.ini文件使用/MAXMEM转换。

BOOT.INI是只读的,需要先把只读属性云掉才能保存。

另:内存转储相关的注册表项全部保存在注册表的如下位置:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl



[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AlwaysKeepMemoryDump"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"CrashDumpEnabled"=dword:00000001