变更页面区域上的保护

BOOL VirtualProtect(
LPVOID lpAddress, // 目标地址起始位置
DWORD dwSize, // 大小
DWORD flNewProtect, // 请求的保护方式
PDWORD lpflOldProtect // 保存老的保护方式
);
函数功能:处理程序的虚拟位置空间里,变更认可页面区域上的保护。

Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

猜你喜欢

转载自blog.csdn.net/qq_39826592/article/details/78062713