Package src :: Module pyfault_defines
[hide private]
[frames] | no frames]

Module pyfault_defines

source code

This provides the constants the main pyfault class uses for process access, memory writes, etc. Some of these were gleaned from MSDN (http://msdn.microsoft.com) and the module structure is referring to a code snippet in the PaiMei framework (http://paimei.openrce.org) by Pedram Amini, although I changed the ctypes type of hModule to be slightly different.

Classes [hide private]
  MODULEENTRY32
Variables [hide private]
  INVALID_HANDLE_VALUE = 0xFFFFFFFF
  PAGE_READWRITE = 0x04
  PROCESS_ALL_ACCESS = 0x000F0000 | 0x00100000 | 0xFFF
  TH32CS_SNAPMODULE = 0x00000008
  VIRTUAL_MEM = 0x1000 | 0x2000