Enabling Page Heap Verification

8 篇文章 0 订阅

转自:https://msdn.microsoft.com/en-us/library/windows/hardware/ff543094(v=vs.85).aspx

The following commands enable full and standard page heap verification for myapp.exe, a fictitious program.

The first command enables standard page heap verification for myapp.exe. It uses the /p parameter to enable page heap for a process. By default, /p enables standard page heap.

gflags /p /enable myapp.exe 

The following commands enable full page heap verification for the myapp.exe program. Although these commands create different settings in the registry, they are all functionally equivalent to selecting the Enable page heap check box for the myapp.exe image file in the Global Flags dialog box. These methods can be used interchangeably.

gflags /p /enable myapp.exe /full
gflags /i myapp.exe +hpa
gflags /i myapp.exe +02000000

The following commands disable full or standard page heap verification for the myapp.exe program, regardless of the command or dialog box method used to enable page heap verification.

gflags /p /disable myapp.exe
gflags /i myapp.exe -hpa
gflags /i myapp.exe -02000000

Note   When using the  /debug or  /kdebug parameters, use the  /p /disable parameters to turn off the page heap verification (not the  /i -hpa parameters). The /p /disable parameters disable page heap verification and delete registry entries that the debugger reads.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值