code: def mprotect(self, lpAddress, dwSize, flNewProtect):
          
          hProcess = self.get_handle(win32.PROCESS_VM_OPERATION)
          return win32.VirtualProtectEx(hProcess, lpAddress, dwSize, flNewProtect)
docs: Set memory protection in the address space of the process.
  
          @see: U{http://msdn.microsoft.com/en-us/library/aa366899.aspx}
  
          @type  lpAddress: int
          @param lpAddress: Address of memory to protect.
  
          @type  dwSize: int
          @param dwSize: Number of bytes to protect.
  
          @type  flNewProtect: int
          @param flNewProtect: New protect flags.
  
          @rtype:  int
          @return: Old protect flags.
  
          @raise WindowsError: On error an exception is raised.