def VirtualProtectEx(self, base_address, size, protection):
old_protect = c_ulong(0)
if not windll.kernel32.VirtualProtectEx(self.h_process, base_address, size, protection, byref(old_protect)):
raise ProcessException('Error: VirtualProtectEx(%08X, %d, %08X)' % (base_address, size, protection))
return old_protect.value
评论列表
文章目录