Package winappdbg :: Package win32 :: Module defines
[hide private]
[frames] | no frames]

Module defines

source code

Debugging API wrappers in ctypes.


See Also: http://apps.sourceforge.net/trac/winappdbg/wiki/Win32APIWrappers

Classes [hide private]
  FakeWinDll
  GuessStringType
Decorator that guesses the correct version (A or W) to call based on the types of the strings passed as parameters.
  MakeANSIVersion
Decorator that generates an ANSI version of a Unicode (wide) only API call.
  PSIZE_T
  PPVOID
  LPBYTE
  LPSBYTE
  LPWORD
  LPSWORD
  LPDWORD
  LPSDWORD
  DWORD_PTR
  ULONG_PTR
  LONG_PTR
  PDWORD
  PULONG
  PLONG
  PBOOL
  LPBOOL
  PHANDLE
  LPHANDLE
  PNTSTATUS
  FLOAT128
  PFLOAT128
  M128A
  PM128A
  UNICODE_STRING
  GUID
  LIST_ENTRY
Functions [hide private]
 
callable(obj) source code
 
RaiseIfZero(result, func=None, arguments=())
Error checking for most Win32 API calls.
source code
Variables [hide private]
  __revision__ = '$Id: defines.py 478 2009-11-28 04:19:09Z qvasi...
  windll = FakeWinDll()
  NULL = None
hash(x)
  INFINITE = -1
  TRUE = 1
  FALSE = 0
  ANYSIZE_ARRAY = 1
  INVALID_HANDLE_VALUE = 4294967295
  MAX_MODULE_NAME32 = 255
  MAX_PATH = 260
  ERROR_SUCCESS = 0
  ERROR_INVALID_FUNCTION = 1
  ERROR_FILE_NOT_FOUND = 2
  ERROR_PATH_NOT_FOUND = 3
  ERROR_ACCESS_DENIED = 5
  ERROR_INVALID_HANDLE = 6
  ERROR_NOT_ENOUGH_MEMORY = 8
  ERROR_INVALID_DRIVE = 15
  ERROR_NO_MORE_FILES = 18
  ERROR_BAD_LENGTH = 24
  ERROR_HANDLE_EOF = 38
  ERROR_HANDLE_DISK_FULL = 39
  ERROR_NOT_SUPPORTED = 50
  ERROR_FILE_EXISTS = 80
  ERROR_INVALID_PARAMETER = 87
  ERROR_BUFFER_OVERFLOW = 111
  ERROR_DISK_FULL = 112
  ERROR_CALL_NOT_IMPLEMENTED = 120
  ERROR_SEM_TIMEOUT = 121
  ERROR_INSUFFICIENT_BUFFER = 122
  ERROR_INVALID_NAME = 123
  ERROR_MOD_NOT_FOUND = 126
  ERROR_PROC_NOT_FOUND = 127
  ERROR_DIR_NOT_EMPTY = 145
  ERROR_BAD_THREADID_ADDR = 159
  ERROR_BAD_ARGUMENTS = 160
  ERROR_BAD_PATHNAME = 161
  ERROR_ALREADY_EXISTS = 183
  ERROR_INVALID_FLAG_NUMBER = 186
  ERROR_FILENAME_EXCED_RANGE = 206
  WAIT_TIMEOUT = 258
  ERROR_NO_MORE_ITEMS = 259
  ERROR_PARTIAL_COPY = 299
  ERROR_INVALID_ADDRESS = 487
  ERROR_THREAD_NOT_IN_PROCESS = 566
  ERROR_CONTROL_C_EXIT = 572
  ERROR_UNHANDLED_EXCEPTION = 574
  ERROR_ASSERTION_FAILURE = 668
  ERROR_WOW_ASSERTION = 670
  ERROR_DBG_EXCEPTION_NOT_HANDLED = 688
  ERROR_DBG_REPLY_LATER = 689
  ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE = 690
  ERROR_DBG_TERMINATE_THREAD = 691
  ERROR_DBG_TERMINATE_PROCESS = 692
  ERROR_DBG_CONTROL_C = 693
  ERROR_DBG_PRINTEXCEPTION_C = 694
  ERROR_DBG_RIPEXCEPTION = 695
  ERROR_DBG_CONTROL_BREAK = 696
  ERROR_DBG_COMMAND_EXCEPTION = 697
  ERROR_DBG_EXCEPTION_HANDLED = 766
  ERROR_DBG_CONTINUE = 767
  ERROR_DEBUGGER_INACTIVE = 1284
  __package__ = 'winappdbg.win32'
Function Details [hide private]

RaiseIfZero(result, func=None, arguments=())

source code 

Error checking for most Win32 API calls.

The function is assumed to return an integer, which is 0 on error. In that case the WindowsError exception is raised.


Variables Details [hide private]

__revision__

Value:
'$Id: defines.py 478 2009-11-28 04:19:09Z qvasimodo $'