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

Module kernel32

source code

Debugging API wrappers in ctypes.


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

Classes [hide private]
  Handle
Encapsulates Win32 handles to avoid leaking them.
  ProcessHandle
Win32 process handle.
  ThreadHandle
Win32 thread handle.
  FileHandle
Win32 file handle.
  ProcessInformation
Process information object returned by CreateProcess.
  MemoryBasicInformation
Memory information object returned by VirtualQueryEx.
  ProcThreadAttributeList
Extended process and thread attribute support.
  _OVERLAPPED_STRUCT
  _OVERLAPPED_UNION
  OVERLAPPED
  LPOVERLAPPED
  SECURITY_ATTRIBUTES
  LPSECURITY_ATTRIBUTES
  VS_FIXEDFILEINFO
  THREADNAME_INFO
  MEMORY_BASIC_INFORMATION32
  MEMORY_BASIC_INFORMATION64
  MEMORY_BASIC_INFORMATION
  PMEMORY_BASIC_INFORMATION
  FILETIME
  LPFILETIME
  SYSTEMTIME
  LPSYSTEMTIME
  BY_HANDLE_FILE_INFORMATION
  LPBY_HANDLE_FILE_INFORMATION
  FILE_INFO_BY_HANDLE_CLASS
  PROCESS_INFORMATION
  LPPROCESS_INFORMATION
  STARTUPINFO
  LPSTARTUPINFO
  STARTUPINFOEX
  LPSTARTUPINFOEX
  JIT_DEBUG_INFO
  JIT_DEBUG_INFO32
  JIT_DEBUG_INFO64
  LPJIT_DEBUG_INFO
  LPJIT_DEBUG_INFO32
  LPJIT_DEBUG_INFO64
  EXCEPTION_RECORD32
  PEXCEPTION_RECORD32
  EXCEPTION_RECORD64
  PEXCEPTION_RECORD64
  EXCEPTION_RECORD
  PEXCEPTION_RECORD
  EXCEPTION_DEBUG_INFO
  CREATE_THREAD_DEBUG_INFO
  CREATE_PROCESS_DEBUG_INFO
  EXIT_THREAD_DEBUG_INFO
  EXIT_PROCESS_DEBUG_INFO
  LOAD_DLL_DEBUG_INFO
  UNLOAD_DLL_DEBUG_INFO
  OUTPUT_DEBUG_STRING_INFO
  RIP_INFO
  _DEBUG_EVENT_UNION_
  DEBUG_EVENT
  LPDEBUG_EVENT
  WOW64_FLOATING_SAVE_AREA
  WOW64_CONTEXT
  WOW64_LDT_ENTRY
  PWOW64_FLOATING_SAVE_AREA
  PWOW64_CONTEXT
  PWOW64_LDT_ENTRY
  THREADENTRY32
  LPTHREADENTRY32
  PROCESSENTRY32
  LPPROCESSENTRY32
  MODULEENTRY32
  LPMODULEENTRY32
  HEAPENTRY32
  LPHEAPENTRY32
  HEAPLIST32
  LPHEAPLIST32
Functions [hide private]
 
GetLastError() source code
 
SetLastError(dwErrCode) source code
 
SetLastErrorEx(dwErrCode, dwType) source code
 
CloseHandle(hHandle) source code
 
DuplicateHandle(hSourceHandle, hSourceProcessHandle=None, hTargetProcessHandle=None, dwDesiredAccess=2031616, bInheritHandle=False, dwOptions=2) source code
 
OutputDebugStringA(lpOutputString) source code
 
OutputDebugStringW(lpOutputString) source code
 
SetDllDirectoryA(lpPathName) source code
 
SetDllDirectoryW(lpPathName) source code
 
LoadLibraryA(pszLibrary) source code
 
LoadLibraryW(pszLibrary) source code
 
LoadLibraryExA(pszLibrary, dwFlags=0) source code
 
LoadLibraryExW(pszLibrary, dwFlags=0) source code
 
GetModuleHandleA(lpModuleName) source code
 
GetModuleHandleW(lpModuleName) source code
 
GetProcAddress(hModule, lpProcName) source code
 
FreeLibrary(hModule) source code
 
QueryFullProcessImageNameA(hProcess, dwFlags=0) source code
 
QueryFullProcessImageNameW(hProcess, dwFlags=0) source code
 
GetLogicalDriveStringsA() source code
 
GetLogicalDriveStringsW() source code
 
QueryDosDeviceA(lpDeviceName=None) source code
 
QueryDosDeviceW(lpDeviceName) source code
 
MapViewOfFile(hFileMappingObject, dwDesiredAccess=983103, dwFileOffsetHigh=0, dwFileOffsetLow=0, dwNumberOfBytesToMap=0) source code
 
UnmapViewOfFile(lpBaseAddress) source code
 
OpenFileMappingA(dwDesiredAccess, bInheritHandle, lpName) source code
 
OpenFileMappingW(dwDesiredAccess, bInheritHandle, lpName) source code
 
CreateFileMappingA(hFile, lpAttributes=None, flProtect=64, dwMaximumSizeHigh=0, dwMaximumSizeLow=0, lpName=None) source code
 
CreateFileMappingW(hFile, lpAttributes=None, flProtect=64, dwMaximumSizeHigh=0, dwMaximumSizeLow=0, lpName=None) source code
 
CreateFileA(lpFileName, dwDesiredAccess=268435456, dwShareMode=0, lpSecurityAttributes=None, dwCreationDisposition=4, dwFlagsAndAttributes=128, hTemplateFile=None) source code
 
CreateFileW(lpFileName, dwDesiredAccess=268435456, dwShareMode=0, lpSecurityAttributes=None, dwCreationDisposition=4, dwFlagsAndAttributes=128, hTemplateFile=None) source code
 
FlushFileBuffers(hFile) source code
 
FlushViewOfFile(lpBaseAddress, dwNumberOfBytesToFlush=0) source code
 
SearchPathA(lpPath, lpFileName, lpExtension) source code
 
SearchPathW(lpPath, lpFileName, lpExtension) source code
 
SetSearchPathMode(Flags) source code
 
DeviceIoControl(hDevice, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpOverlapped) source code
 
GetFileInformationByHandle(hFile) source code
 
GetFileInformationByHandleEx(hFile, FileInformationClass, lpFileInformation, dwBufferSize) source code
 
GetFinalPathNameByHandleA(hFile, dwFlags=0) source code
 
GetFinalPathNameByHandleW(hFile, dwFlags=0) source code
 
GetFullPathNameA(lpFileName) source code
 
GetFullPathNameW(lpFileName) source code
 
GetTempPathA() source code
 
GetTempPathW() source code
 
GetTempFileNameA(lpPathName=None, lpPrefixString='TMP', uUnique=0) source code
 
GetTempFileNameW(lpPathName=None, lpPrefixString=u'TMP', uUnique=0) source code
 
GetCurrentDirectoryA() source code
 
GetCurrentDirectoryW() source code
 
LocalFree(hMem) source code
 
SetConsoleCtrlHandler(HandlerRoutine=None, Add=True) source code
 
GenerateConsoleCtrlEvent(dwCtrlEvent, dwProcessGroupId) source code
 
WaitForSingleObject(hHandle, dwMilliseconds=-1) source code
 
WaitForSingleObjectEx(hHandle, dwMilliseconds=-1, bAlertable=True) source code
 
WaitForMultipleObjects(handles, bWaitAll=False, dwMilliseconds=-1) source code
 
WaitForMultipleObjectsEx(handles, bWaitAll=False, dwMilliseconds=-1) source code
 
WaitForDebugEvent(dwMilliseconds=-1) source code
 
ContinueDebugEvent(dwProcessId, dwThreadId, dwContinueStatus=2147549185) source code
 
FlushInstructionCache(hProcess, lpBaseAddress=None, dwSize=0) source code
 
DebugActiveProcess(dwProcessId) source code
 
DebugActiveProcessStop(dwProcessId) source code
 
CreateProcessA(lpApplicationName, lpCommandLine=None, lpProcessAttributes=None, lpThreadAttributes=None, bInheritHandles=False, dwCreationFlags=0, lpEnvironment=None, lpCurrentDirectory=None, lpStartupInfo=None) source code
 
CreateProcessW(lpApplicationName, lpCommandLine=None, lpProcessAttributes=None, lpThreadAttributes=None, bInheritHandles=False, dwCreationFlags=0, lpEnvironment=None, lpCurrentDirectory=None, lpStartupInfo=None) source code
 
CreateProcessAsUserA(hToken, lpApplicationName, lpCommandLine=None, lpProcessAttributes=None, lpThreadAttributes=None, bInheritHandles=False, dwCreationFlags=0, lpEnvironment=None, lpCurrentDirectory=None, lpStartupInfo=None) source code
 
CreateProcessAsUserW(hToken, lpApplicationName, lpCommandLine=None, lpProcessAttributes=None, lpThreadAttributes=None, bInheritHandles=False, dwCreationFlags=0, lpEnvironment=None, lpCurrentDirectory=None, lpStartupInfo=None) source code
 
InitializeProcThreadAttributeList(dwAttributeCount) source code
 
UpdateProcThreadAttribute(lpAttributeList, Attribute, Value, cbSize=None) source code
 
DeleteProcThreadAttributeList(lpAttributeList) source code
 
OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId) source code
 
OpenThread(dwDesiredAccess, bInheritHandle, dwThreadId) source code
 
SuspendThread(hThread) source code
 
ResumeThread(hThread) source code
 
TerminateThread(hThread, dwExitCode=0) source code
 
TerminateProcess(hProcess, dwExitCode=0) source code
 
ReadProcessMemory(hProcess, lpBaseAddress, nSize) source code
 
WriteProcessMemory(hProcess, lpBaseAddress, lpBuffer) source code
 
VirtualAllocEx(hProcess, lpAddress=0, dwSize=4096, flAllocationType=12288, flProtect=64) source code
 
VirtualQueryEx(hProcess, lpAddress) source code
 
VirtualProtectEx(hProcess, lpAddress, dwSize, flNewProtect=64) source code
 
VirtualFreeEx(hProcess, lpAddress, dwSize=0, dwFreeType=32768) source code
 
CreateRemoteThread(hProcess, lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter, dwCreationFlags) source code
 
GetCurrentProcess() source code
 
GetCurrentThread() source code
 
GetProcessId(hProcess) source code
 
GetThreadId(hThread) source code
 
GetProcessIdOfThread(hThread) source code
 
GetExitCodeProcess(hProcess) source code
 
GetExitCodeThread(hThread) source code
 
GetProcessVersion(ProcessId) source code
 
GetPriorityClass(hProcess) source code
 
SetPriorityClass(hProcess, dwPriorityClass=32) source code
 
GetProcessPriorityBoost(hProcess) source code
 
SetProcessPriorityBoost(hProcess, DisablePriorityBoost) source code
 
GetProcessAffinityMask(hProcess) source code
 
SetProcessAffinityMask(hProcess, dwProcessAffinityMask) source code
 
CheckRemoteDebuggerPresent(hProcess) source code
 
DebugSetProcessKillOnExit(KillOnExit) source code
 
DebugBreakProcess(hProcess) source code
 
CreateToolhelp32Snapshot(dwFlags=15, th32ProcessID=0) source code
 
Process32First(hSnapshot) source code
 
Process32Next(hSnapshot, pe=None) source code
 
Thread32First(hSnapshot) source code
 
Thread32Next(hSnapshot, te=None) source code
 
Module32First(hSnapshot) source code
 
Module32Next(hSnapshot, me=None) source code
 
Heap32First(th32ProcessID, th32HeapID) source code
 
Heap32Next(he) source code
 
Heap32ListFirst(hSnapshot) source code
 
Heap32ListNext(hSnapshot, hl=None) source code
 
Toolhelp32ReadProcessMemory(th32ProcessID, lpBaseAddress, cbRead) source code
 
GetCurrentProcessorNumber() source code
 
FlushProcessWriteBuffers() source code
 
GetGuiResources(hProcess, uiFlags=0) source code
 
GetProcessHandleCount(hProcess) source code
 
GetProcessTimes(hProcess) source code
 
FileTimeToSystemTime(lpFileTime) source code
 
IsWow64Process(hProcess) source code
Variables [hide private]
  __revision__ = '$Id: kernel32.py 550 2009-12-13 23:52:46Z qvas...
  ContextArchMask = 1638400
  STILL_ACTIVE = 259
  WAIT_TIMEOUT = 258
  WAIT_FAILED = -1
  WAIT_OBJECT_0 = 0
  EXCEPTION_NONCONTINUABLE = 1
  EXCEPTION_MAXIMUM_PARAMETERS = 15
  MAXIMUM_WAIT_OBJECTS = 64
  MAXIMUM_SUSPEND_COUNT = 127
  FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
  FORMAT_MESSAGE_FROM_SYSTEM = 4096
  GR_GDIOBJECTS = 0
  GR_USEROBJECTS = 1
  PROCESS_NAME_NATIVE = 1
  DONT_RESOLVE_DLL_REFERENCES = 1
  LOAD_LIBRARY_AS_DATAFILE = 2
  LOAD_WITH_ALTERED_SEARCH_PATH = 8
  LOAD_IGNORE_CODE_AUTHZ_LEVEL = 16
  LOAD_LIBRARY_AS_IMAGE_RESOURCE = 32
  LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 64
  CTRL_C_EVENT = 0
  CTRL_BREAK_EVENT = 1
  CTRL_CLOSE_EVENT = 2
  CTRL_LOGOFF_EVENT = 5
  CTRL_SHUTDOWN_EVENT = 6
  HEAP_NO_SERIALIZE = 1
  HEAP_GENERATE_EXCEPTIONS = 4
  HEAP_ZERO_MEMORY = 8
  HEAP_CREATE_ENABLE_EXECUTE = 262144
  DELETE = 65536
  READ_CONTROL = 131072
  WRITE_DAC = 262144
  WRITE_OWNER = 524288
  SYNCHRONIZE = 1048576
  STANDARD_RIGHTS_REQUIRED = 983040
  STANDARD_RIGHTS_READ = 131072
  STANDARD_RIGHTS_WRITE = 131072
  STANDARD_RIGHTS_EXECUTE = 131072
  STANDARD_RIGHTS_ALL = 2031616
  SPECIFIC_RIGHTS_ALL = 65535
  PROCESS_TERMINATE = 1
  PROCESS_CREATE_THREAD = 2
  PROCESS_SET_SESSIONID = 4
  PROCESS_VM_OPERATION = 8
  PROCESS_VM_READ = 16
  PROCESS_VM_WRITE = 32
  PROCESS_DUP_HANDLE = 64
  PROCESS_CREATE_PROCESS = 128
  PROCESS_SET_QUOTA = 256
  PROCESS_SET_INFORMATION = 512
  PROCESS_QUERY_INFORMATION = 1024
  PROCESS_SUSPEND_RESUME = 2048
  PROCESS_ALL_ACCESS = 2035711
  DEBUG_PROCESS = 1
  DEBUG_ONLY_THIS_PROCESS = 2
  CREATE_SUSPENDED = 4
  DETACHED_PROCESS = 8
  CREATE_NEW_CONSOLE = 16
  NORMAL_PRIORITY_CLASS = 32
  IDLE_PRIORITY_CLASS = 64
  HIGH_PRIORITY_CLASS = 128
  REALTIME_PRIORITY_CLASS = 256
  CREATE_NEW_PROCESS_GROUP = 512
  CREATE_UNICODE_ENVIRONMENT = 1024
  CREATE_SEPARATE_WOW_VDM = 2048
  CREATE_SHARED_WOW_VDM = 4096
  CREATE_FORCEDOS = 8192
  BELOW_NORMAL_PRIORITY_CLASS = 16384
  ABOVE_NORMAL_PRIORITY_CLASS = 32768
  INHERIT_PARENT_AFFINITY = 65536
  STACK_SIZE_PARAM_IS_A_RESERVATION = 65536
  INHERIT_CALLER_PRIORITY = 131072
  CREATE_PROTECTED_PROCESS = 262144
  EXTENDED_STARTUPINFO_PRESENT = 524288
  PROCESS_MODE_BACKGROUND_BEGIN = 1048576
  PROCESS_MODE_BACKGROUND_END = 2097152
  CREATE_BREAKAWAY_FROM_JOB = 16777216
  CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 33554432
  CREATE_DEFAULT_ERROR_MODE = 67108864
  CREATE_NO_WINDOW = 134217728
  PROFILE_USER = 268435456
  PROFILE_KERNEL = 536870912
  PROFILE_SERVER = 1073741824
  CREATE_IGNORE_SYSTEM_DEFAULT = 2147483648
  THREAD_BASE_PRIORITY_LOWRT = 15
  THREAD_BASE_PRIORITY_MAX = 2
  THREAD_BASE_PRIORITY_MIN = -2
  THREAD_BASE_PRIORITY_IDLE = -15
  THREAD_PRIORITY_LOWEST = -2
  THREAD_PRIORITY_BELOW_NORMAL = -1
  THREAD_PRIORITY_NORMAL = 0
  THREAD_PRIORITY_HIGHEST = 2
  THREAD_PRIORITY_ABOVE_NORMAL = 1
  THREAD_PRIORITY_ERROR_RETURN = 4294967295
  THREAD_PRIORITY_TIME_CRITICAL = 15
  THREAD_PRIORITY_IDLE = -15
  PAGE_NOACCESS = 1
  PAGE_READONLY = 2
  PAGE_READWRITE = 4
  PAGE_WRITECOPY = 8
  PAGE_EXECUTE = 16
  PAGE_EXECUTE_READ = 32
  PAGE_EXECUTE_READWRITE = 64
  PAGE_EXECUTE_WRITECOPY = 128
  PAGE_GUARD = 256
  PAGE_NOCACHE = 512
  PAGE_WRITECOMBINE = 1024
  MEM_COMMIT = 4096
  MEM_RESERVE = 8192
  MEM_DECOMMIT = 16384
  MEM_RELEASE = 32768
  MEM_FREE = 65536
  MEM_PRIVATE = 131072
  MEM_MAPPED = 262144
  MEM_RESET = 524288
  MEM_TOP_DOWN = 1048576
  MEM_WRITE_WATCH = 2097152
  MEM_PHYSICAL = 4194304
  MEM_LARGE_PAGES = 536870912
  MEM_4MB_PAGES = 2147483648
  SEC_FILE = 8388608
  SEC_IMAGE = 16777216
  SEC_RESERVE = 67108864
  SEC_COMMIT = 134217728
  SEC_NOCACHE = 268435456
  SEC_LARGE_PAGES = 2147483648
  MEM_IMAGE = 16777216
  WRITE_WATCH_FLAG_RESET = 1
  SECTION_QUERY = 1
  SECTION_MAP_WRITE = 2
  SECTION_MAP_READ = 4
  SECTION_MAP_EXECUTE = 8
  SECTION_EXTEND_SIZE = 16
  SECTION_MAP_EXECUTE_EXPLICIT = 32
  SECTION_ALL_ACCESS = 983071
  FILE_MAP_COPY = 1
  FILE_MAP_WRITE = 2
  FILE_MAP_READ = 4
  FILE_MAP_ALL_ACCESS = 983071
  FILE_MAP_EXECUTE = 32
  GENERIC_READ = 2147483648
  GENERIC_WRITE = 1073741824
  GENERIC_EXECUTE = 536870912
  GENERIC_ALL = 268435456
  FILE_SHARE_READ = 1
  FILE_SHARE_WRITE = 2
  FILE_SHARE_DELETE = 4
  CREATE_NEW = 1
  CREATE_ALWAYS = 2
  OPEN_EXISTING = 3
  OPEN_ALWAYS = 4
  TRUNCATE_EXISTING = 5
  FILE_FLAG_WRITE_THROUGH = 2147483648
  FILE_FLAG_NO_BUFFERING = 536870912
  FILE_FLAG_RANDOM_ACCESS = 268435456
  FILE_FLAG_SEQUENTIAL_SCAN = 134217728
  FILE_FLAG_DELETE_ON_CLOSE = 67108864
  FILE_FLAG_OVERLAPPED = 1073741824
  FILE_ATTRIBUTE_READONLY = 1
  FILE_ATTRIBUTE_HIDDEN = 2
  FILE_ATTRIBUTE_SYSTEM = 4
  FILE_ATTRIBUTE_DIRECTORY = 16
  FILE_ATTRIBUTE_ARCHIVE = 32
  FILE_ATTRIBUTE_DEVICE = 64
  FILE_ATTRIBUTE_NORMAL = 128
  FILE_ATTRIBUTE_TEMPORARY = 256
  EXCEPTION_DEBUG_EVENT = 1
  CREATE_THREAD_DEBUG_EVENT = 2
  CREATE_PROCESS_DEBUG_EVENT = 3
  EXIT_THREAD_DEBUG_EVENT = 4
  EXIT_PROCESS_DEBUG_EVENT = 5
  LOAD_DLL_DEBUG_EVENT = 6
  UNLOAD_DLL_DEBUG_EVENT = 7
  OUTPUT_DEBUG_STRING_EVENT = 8
  RIP_EVENT = 9
  DBG_CONTINUE = 65538
  DBG_EXCEPTION_HANDLED = 65537
  DBG_EXCEPTION_NOT_HANDLED = 2147549185
  DBG_TERMINATE_THREAD = 1073807363
  DBG_TERMINATE_PROCESS = 1073807364
  DBG_CONTROL_BREAK = 1073807368
  DBG_COMMAND_EXCEPTION = 1073807369
  STATUS_WAIT_0 = 0
  STATUS_ABANDONED_WAIT_0 = 128
  STATUS_USER_APC = 192
  STATUS_TIMEOUT = 258
  STATUS_PENDING = 259
  STATUS_SEGMENT_NOTIFICATION = 1073741829
  STATUS_GUARD_PAGE_VIOLATION = 2147483649
  STATUS_DATATYPE_MISALIGNMENT = 2147483650
  STATUS_BREAKPOINT = 2147483651
  STATUS_SINGLE_STEP = 2147483652
  STATUS_INVALID_INFO_CLASS = 3221225475
  STATUS_ACCESS_VIOLATION = 3221225477
  STATUS_IN_PAGE_ERROR = 3221225478
  STATUS_INVALID_HANDLE = 3221225480
  STATUS_NO_MEMORY = 3221225495
  STATUS_ILLEGAL_INSTRUCTION = 3221225501
  STATUS_NONCONTINUABLE_EXCEPTION = 3221225509
  STATUS_INVALID_DISPOSITION = 3221225510
  STATUS_ARRAY_BOUNDS_EXCEEDED = 3221225612
  STATUS_FLOAT_DENORMAL_OPERAND = 3221225613
  STATUS_FLOAT_DIVIDE_BY_ZERO = 3221225614
  STATUS_FLOAT_INEXACT_RESULT = 3221225615
  STATUS_FLOAT_INVALID_OPERATION = 3221225616
  STATUS_FLOAT_OVERFLOW = 3221225617
  STATUS_FLOAT_STACK_CHECK = 3221225618
  STATUS_FLOAT_UNDERFLOW = 3221225619
  STATUS_INTEGER_DIVIDE_BY_ZERO = 3221225620
  STATUS_INTEGER_OVERFLOW = 3221225621
  STATUS_PRIVILEGED_INSTRUCTION = 3221225622
  STATUS_STACK_OVERFLOW = 3221225725
  STATUS_CONTROL_C_EXIT = 3221225786
  STATUS_FLOAT_MULTIPLE_FAULTS = 3221226164
  STATUS_FLOAT_MULTIPLE_TRAPS = 3221226165
  STATUS_REG_NAT_CONSUMPTION = 3221226185
  STATUS_SXS_EARLY_DEACTIVATION = 3222601743
  STATUS_SXS_INVALID_DEACTIVATION = 3222601744
  STATUS_STACK_BUFFER_OVERRUN = 3221226505
  STATUS_WX86_BREAKPOINT = 1073741855
  STATUS_HEAP_CORRUPTION = 3221226356
  STATUS_POSSIBLE_DEADLOCK = 3221225876
  STATUS_UNWIND_CONSOLIDATE = 2147483689
  EXCEPTION_ACCESS_VIOLATION = 3221225477
  EXCEPTION_ARRAY_BOUNDS_EXCEEDED = 3221225612
  EXCEPTION_BREAKPOINT = 2147483651
  EXCEPTION_DATATYPE_MISALIGNMENT = 2147483650
  EXCEPTION_FLT_DENORMAL_OPERAND = 3221225613
  EXCEPTION_FLT_DIVIDE_BY_ZERO = 3221225614
  EXCEPTION_FLT_INEXACT_RESULT = 3221225615
  EXCEPTION_FLT_INVALID_OPERATION = 3221225616
  EXCEPTION_FLT_OVERFLOW = 3221225617
  EXCEPTION_FLT_STACK_CHECK = 3221225618
  EXCEPTION_FLT_UNDERFLOW = 3221225619
  EXCEPTION_ILLEGAL_INSTRUCTION = 3221225501
  EXCEPTION_IN_PAGE_ERROR = 3221225478
  EXCEPTION_INT_DIVIDE_BY_ZERO = 3221225620
  EXCEPTION_INT_OVERFLOW = 3221225621
  EXCEPTION_INVALID_DISPOSITION = 3221225510
  EXCEPTION_NONCONTINUABLE_EXCEPTION = 3221225509
  EXCEPTION_PRIV_INSTRUCTION = 3221225622
  EXCEPTION_SINGLE_STEP = 2147483652
  EXCEPTION_STACK_OVERFLOW = 3221225725
  EXCEPTION_GUARD_PAGE = 2147483649
  EXCEPTION_INVALID_HANDLE = 3221225480
  EXCEPTION_POSSIBLE_DEADLOCK = 3221225876
  EXCEPTION_WX86_BREAKPOINT = 1073741855
  CONTROL_C_EXIT = 3221225786
  DBG_CONTROL_C = 1073807365
  MS_VC_EXCEPTION = 1080890248
  ACCESS_VIOLATION_TYPE_READ = 0
  ACCESS_VIOLATION_TYPE_WRITE = 1
  ACCESS_VIOLATION_TYPE_DEP = 8
  DUPLICATE_CLOSE_SOURCE = 1
  DUPLICATE_SAME_ACCESS = 2
  FILE_NAME_NORMALIZED = 0
  FILE_NAME_OPENED = 8
  VOLUME_NAME_DOS = 0
  VOLUME_NAME_GUID = 1
  VOLUME_NAME_NONE = 4
  VOLUME_NAME_NT = 2
  PRODUCT_BUSINESS = 6
  PRODUCT_BUSINESS_N = 16
  PRODUCT_CLUSTER_SERVER = 18
  PRODUCT_DATACENTER_SERVER = 8
  PRODUCT_DATACENTER_SERVER_CORE = 12
  PRODUCT_DATACENTER_SERVER_CORE_V = 39
  PRODUCT_DATACENTER_SERVER_V = 37
  PRODUCT_ENTERPRISE = 4
  PRODUCT_ENTERPRISE_E = 70
  PRODUCT_ENTERPRISE_N = 27
  PRODUCT_ENTERPRISE_SERVER = 10
  PRODUCT_ENTERPRISE_SERVER_CORE = 14
  PRODUCT_ENTERPRISE_SERVER_CORE_V = 41
  PRODUCT_ENTERPRISE_SERVER_IA64 = 15
  PRODUCT_ENTERPRISE_SERVER_V = 38
  PRODUCT_HOME_BASIC = 2
  PRODUCT_HOME_BASIC_E = 67
  PRODUCT_HOME_BASIC_N = 5
  PRODUCT_HOME_PREMIUM = 3
  PRODUCT_HOME_PREMIUM_E = 68
  PRODUCT_HOME_PREMIUM_N = 26
  PRODUCT_HYPERV = 42
  PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT = 30
  PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING = 32
  PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY = 31
  PRODUCT_PROFESSIONAL = 48
  PRODUCT_PROFESSIONAL_E = 69
  PRODUCT_PROFESSIONAL_N = 49
  PRODUCT_SERVER_FOR_SMALLBUSINESS = 24
  PRODUCT_SERVER_FOR_SMALLBUSINESS_V = 35
  PRODUCT_SERVER_FOUNDATION = 33
  PRODUCT_SMALLBUSINESS_SERVER = 9
  PRODUCT_STANDARD_SERVER = 7
  PRODUCT_STANDARD_SERVER_CORE = 13
  PRODUCT_STANDARD_SERVER_CORE_V = 40
  PRODUCT_STANDARD_SERVER_V = 36
  PRODUCT_STARTER = 11
  PRODUCT_STARTER_E = 66
  PRODUCT_STARTER_N = 47
  PRODUCT_STORAGE_ENTERPRISE_SERVER = 23
  PRODUCT_STORAGE_EXPRESS_SERVER = 20
  PRODUCT_STORAGE_STANDARD_SERVER = 21
  PRODUCT_STORAGE_WORKGROUP_SERVER = 22
  PRODUCT_UNDEFINED = 0
  PRODUCT_UNLICENSED = 2882382797
  PRODUCT_ULTIMATE = 1
  PRODUCT_ULTIMATE_E = 71
  PRODUCT_ULTIMATE_N = 28
  PRODUCT_WEB_SERVER = 17
  PRODUCT_WEB_SERVER_CORE = 29
  PROC_THREAD_ATTRIBUTE_NUMBER = 65535
  PROC_THREAD_ATTRIBUTE_THREAD = 65536
  PROC_THREAD_ATTRIBUTE_INPUT = 131072
  PROC_THREAD_ATTRIBUTE_ADDITIVE = 262144
  ProcThreadAttributeParentProcess = 0
  ProcThreadAttributeExtendedFlags = 1
  ProcThreadAttributeHandleList = 2
  ProcThreadAttributeGroupAffinity = 3
  ProcThreadAttributePreferredNode = 4
  ProcThreadAttributeIdealProcessor = 5
  ProcThreadAttributeUmsThread = 6
  ProcThreadAttributeMitigationPolicy = 7
  ProcThreadAttributeMax = 8
  PROC_THREAD_ATTRIBUTE_PARENT_PROCESS = 131072
  PROC_THREAD_ATTRIBUTE_EXTENDED_FLAGS = 393217
  PROC_THREAD_ATTRIBUTE_HANDLE_LIST = 131074
  PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY = 196611
  PROC_THREAD_ATTRIBUTE_PREFERRED_NODE = 131076
  PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR = 196613
  PROC_THREAD_ATTRIBUTE_UMS_THREAD = 196614
  PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = 131079
  PROCESS_CREATION_MITIGATION_POLICY_DEP_ENABLE = 1
  PROCESS_CREATION_MITIGATION_POLICY_DEP_ATL_THUNK_ENABLE = 2
  PROCESS_CREATION_MITIGATION_POLICY_SEHOP_ENABLE = 4
  WOW64_CS32 = 35
  WOW64_CONTEXT_i386 = 65536
  WOW64_CONTEXT_i486 = 65536
  WOW64_CONTEXT_CONTROL = 65537
  WOW64_CONTEXT_INTEGER = 65538
  WOW64_CONTEXT_SEGMENTS = 65540
  WOW64_CONTEXT_FLOATING_POINT = 65544
  WOW64_CONTEXT_DEBUG_REGISTERS = 65552
  WOW64_CONTEXT_EXTENDED_REGISTERS = 65568
  WOW64_CONTEXT_FULL = 65543
  WOW64_CONTEXT_ALL = 65599
  WOW64_SIZE_OF_80387_REGISTERS = 80
  WOW64_MAXIMUM_SUPPORTED_EXTENSION = 512
  TH32CS_SNAPHEAPLIST = 1
  TH32CS_SNAPPROCESS = 2
  TH32CS_SNAPTHREAD = 4
  TH32CS_SNAPMODULE = 8
  TH32CS_INHERIT = 2147483648
  TH32CS_SNAPALL = 15
  OutputDebugString = GuessStringType(OutputDebugStringA, Output...
  SetDllDirectory = GuessStringType(SetDllDirectoryA, SetDllDire...
  LoadLibrary = GuessStringType(LoadLibraryA, LoadLibraryW)
  LoadLibraryEx = GuessStringType(LoadLibraryExA, LoadLibraryExW)
  GetModuleHandle = GuessStringType(GetModuleHandleA, GetModuleH...
  QueryFullProcessImageName = GuessStringType(QueryFullProcessIm...
  GetLogicalDriveStrings = GuessStringType(GetLogicalDriveString...
  QueryDosDevice = GuessStringType(QueryDosDeviceA, QueryDosDevi...
  OpenFileMapping = GuessStringType(OpenFileMappingA, OpenFileMa...
  CreateFileMapping = GuessStringType(CreateFileMappingA, Create...
  CreateFile = GuessStringType(CreateFileA, CreateFileW)
  SearchPath = GuessStringType(SearchPathA, SearchPathW)
  GetFinalPathNameByHandle = GuessStringType(GetFinalPathNameByH...
  GetFullPathName = GuessStringType(GetFullPathNameA, GetFullPat...
  GetTempPath = GuessStringType(GetTempPathA, GetTempPathW)
  GetTempFileName = GuessStringType(GetTempFileNameA, GetTempFil...
  GetCurrentDirectory = GuessStringType(GetCurrentDirectoryA, Ge...
  CreateProcess = GuessStringType(CreateProcessA, CreateProcessW)
  CreateProcessAsUser = GuessStringType(CreateProcessAsUserA, Cr...
  __package__ = 'winappdbg.win32'
Variables Details [hide private]

__revision__

Value:
'$Id: kernel32.py 550 2009-12-13 23:52:46Z qvasimodo $'

OutputDebugString

Value:
GuessStringType(OutputDebugStringA, OutputDebugStringW)

SetDllDirectory

Value:
GuessStringType(SetDllDirectoryA, SetDllDirectoryW)

GetModuleHandle

Value:
GuessStringType(GetModuleHandleA, GetModuleHandleW)

QueryFullProcessImageName

Value:
GuessStringType(QueryFullProcessImageNameA, QueryFullProcessImageNameW\
)

GetLogicalDriveStrings

Value:
GuessStringType(GetLogicalDriveStringsA, GetLogicalDriveStringsW)

QueryDosDevice

Value:
GuessStringType(QueryDosDeviceA, QueryDosDeviceW)

OpenFileMapping

Value:
GuessStringType(OpenFileMappingA, OpenFileMappingW)

CreateFileMapping

Value:
GuessStringType(CreateFileMappingA, CreateFileMappingW)

GetFinalPathNameByHandle

Value:
GuessStringType(GetFinalPathNameByHandleA, GetFinalPathNameByHandleW)

GetFullPathName

Value:
GuessStringType(GetFullPathNameA, GetFullPathNameW)

GetTempFileName

Value:
GuessStringType(GetTempFileNameA, GetTempFileNameW)

GetCurrentDirectory

Value:
GuessStringType(GetCurrentDirectoryA, GetCurrentDirectoryW)

CreateProcessAsUser

Value:
GuessStringType(CreateProcessAsUserA, CreateProcessAsUserW)