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

Module version

source code

Debugging API wrappers in ctypes.


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

Classes [hide private]
  OSVERSIONINFOA
  OSVERSIONINFOW
  OSVERSIONINFOEXA
  OSVERSIONINFOEXW
  LPOSVERSIONINFOA
  LPOSVERSIONINFOW
  LPOSVERSIONINFOEXA
  LPOSVERSIONINFOEXW
  POSVERSIONINFOA
  POSVERSIONINFOW
  POSVERSIONINFOEXA
  POSVERSIONINFOEXW
  _SYSTEM_INFO_OEM_ID_STRUCT
  _SYSTEM_INFO_OEM_ID
  SYSTEM_INFO
  LPSYSTEM_INFO
Functions [hide private]
 
GetSystemInfo() source code
 
GetNativeSystemInfo() source code
 
GetSystemMetrics(nIndex) source code
 
GetVersion() source code
 
GetVersionExA() source code
 
GetVersionExW() source code
 
GetProductInfo(dwOSMajorVersion, dwOSMinorVersion, dwSpMajorVersion, dwSpMinorVersion) source code
 
VerifyVersionInfo(lpVersionInfo, dwTypeMask, dwlConditionMask) source code
 
VerifyVersionInfoA(lpVersionInfo, dwTypeMask, dwlConditionMask) source code
 
VerifyVersionInfoW(lpVersionInfo, dwTypeMask, dwlConditionMask) source code
 
VerSetConditionMask(dwlConditionMask, dwTypeBitMask, dwConditionMask) source code
int
get_bits()
Determines the current integer size in bits.
source code
str
get_arch()
Determines the current processor architecture.
source code
str
get_os()
Determines the current operating system.
source code
Variables [hide private]
  __revision__ = '$Id: version.py 441 2009-11-11 01:36:44Z Qvasi...
  VER_PLATFORM_WIN32s = 0
  VER_PLATFORM_WIN32_WINDOWS = 1
  VER_PLATFORM_WIN32_NT = 2
  VER_SUITE_BACKOFFICE = 4
  VER_SUITE_BLADE = 1024
  VER_SUITE_COMPUTE_SERVER = 16384
  VER_SUITE_DATACENTER = 128
  VER_SUITE_ENTERPRISE = 2
  VER_SUITE_EMBEDDEDNT = 64
  VER_SUITE_PERSONAL = 512
  VER_SUITE_SINGLEUSERTS = 256
  VER_SUITE_SMALLBUSINESS = 1
  VER_SUITE_SMALLBUSINESS_RESTRICTED = 32
  VER_SUITE_STORAGE_SERVER = 8192
  VER_SUITE_TERMINAL = 16
  VER_SUITE_WH_SERVER = 32768
  VER_NT_DOMAIN_CONTROLLER = 2
  VER_NT_SERVER = 3
  VER_NT_WORKSTATION = 1
  VER_BUILDNUMBER = 4
  VER_MAJORVERSION = 2
  VER_MINORVERSION = 1
  VER_PLATFORMID = 8
  VER_PRODUCT_TYPE = 128
  VER_SERVICEPACKMAJOR = 32
  VER_SERVICEPACKMINOR = 16
  VER_SUITENAME = 64
  VER_EQUAL = 1
  VER_GREATER = 2
  VER_GREATER_EQUAL = 3
  VER_LESS = 4
  VER_LESS_EQUAL = 5
  VER_AND = 6
  VER_OR = 7
  SM_CXSCREEN = 0
  SM_CYSCREEN = 1
  SM_CXVSCROLL = 2
  SM_CYHSCROLL = 3
  SM_CYCAPTION = 4
  SM_CXBORDER = 5
  SM_CYBORDER = 6
  SM_CXDLGFRAME = 7
  SM_CYDLGFRAME = 8
  SM_CYVTHUMB = 9
  SM_CXHTHUMB = 10
  SM_CXICON = 11
  SM_CYICON = 12
  SM_CXCURSOR = 13
  SM_CYCURSOR = 14
  SM_CYMENU = 15
  SM_CXFULLSCREEN = 16
  SM_CYFULLSCREEN = 17
  SM_CYKANJIWINDOW = 18
  SM_MOUSEPRESENT = 19
  SM_CYVSCROLL = 20
  SM_CXHSCROLL = 21
  SM_DEBUG = 22
  SM_SWAPBUTTON = 23
  SM_RESERVED1 = 24
  SM_RESERVED2 = 25
  SM_RESERVED3 = 26
  SM_RESERVED4 = 27
  SM_CXMIN = 28
  SM_CYMIN = 29
  SM_CXSIZE = 30
  SM_CYSIZE = 31
  SM_CXFRAME = 32
  SM_CYFRAME = 33
  SM_CXMINTRACK = 34
  SM_CYMINTRACK = 35
  SM_CXDOUBLECLK = 36
  SM_CYDOUBLECLK = 37
  SM_CXICONSPACING = 38
  SM_CYICONSPACING = 39
  SM_MENUDROPALIGNMENT = 40
  SM_PENWINDOWS = 41
  SM_DBCSENABLED = 42
  SM_CMOUSEBUTTONS = 43
  SM_CXFIXEDFRAME = 7
  SM_CYFIXEDFRAME = 8
  SM_CXSIZEFRAME = 32
  SM_CYSIZEFRAME = 33
  SM_SECURE = 44
  SM_CXEDGE = 45
  SM_CYEDGE = 46
  SM_CXMINSPACING = 47
  SM_CYMINSPACING = 48
  SM_CXSMICON = 49
  SM_CYSMICON = 50
  SM_CYSMCAPTION = 51
  SM_CXSMSIZE = 52
  SM_CYSMSIZE = 53
  SM_CXMENUSIZE = 54
  SM_CYMENUSIZE = 55
  SM_ARRANGE = 56
  SM_CXMINIMIZED = 57
  SM_CYMINIMIZED = 58
  SM_CXMAXTRACK = 59
  SM_CYMAXTRACK = 60
  SM_CXMAXIMIZED = 61
  SM_CYMAXIMIZED = 62
  SM_NETWORK = 63
  SM_CLEANBOOT = 67
  SM_CXDRAG = 68
  SM_CYDRAG = 69
  SM_SHOWSOUNDS = 70
  SM_CXMENUCHECK = 71
  SM_CYMENUCHECK = 72
  SM_SLOWMACHINE = 73
  SM_MIDEASTENABLED = 74
  SM_MOUSEWHEELPRESENT = 75
  SM_XVIRTUALSCREEN = 76
  SM_YVIRTUALSCREEN = 77
  SM_CXVIRTUALSCREEN = 78
  SM_CYVIRTUALSCREEN = 79
  SM_CMONITORS = 80
  SM_SAMEDISPLAYFORMAT = 81
  SM_IMMENABLED = 82
  SM_CXFOCUSBORDER = 83
  SM_CYFOCUSBORDER = 84
  SM_TABLETPC = 86
  SM_MEDIACENTER = 87
  SM_STARTER = 88
  SM_SERVERR2 = 89
  SM_MOUSEHORIZONTALWHEELPRESENT = 91
  SM_CXPADDEDBORDER = 92
  SM_CMETRICS = 93
  SM_REMOTESESSION = 4096
  SM_SHUTTINGDOWN = 8192
  SM_REMOTECONTROL = 8193
  SM_CARETBLINKINGENABLED = 8194
  PROCESSOR_ARCHITECTURE_INTEL = 0
  PROCESSOR_ARCHITECTURE_IA64 = 6
  PROCESSOR_ARCHITECTURE_AMD64 = 9
  PROCESSOR_ARCHITECTURE_UNKNOWN = 65535
  GetVersionEx = GuessStringType(GetVersionExA, GetVersionExW)
  arch = 'i386'
  bits = 32
  os = 'Windows XP'
  __package__ = 'winappdbg.win32'
Function Details [hide private]

get_bits()

source code 

Determines the current integer size in bits.

This is useful to know if we're running in a 32 bits or a 64 bits machine.

Returns: int
Returns the size of SIZE_T in bits.

get_arch()

source code 

Determines the current processor architecture.

Returns: str
One of the following values:
  • "unknown"
  • "i386" for Intel 32-bit x86 processor or compatible.
  • "amd64" for Intel 64-bit x86_64 processor or compatible.
  • "ia64" for Intel Itanium processor or compatible.

get_os()

source code 

Determines the current operating system.

This function allows you to quickly tell apart major OS differences. For more detailed information call kernel32.GetVersionEx instead.

Returns: str
One of the following values:
  • "Unknown"
  • "Windows NT"
  • "Windows 2000"
  • "Windows XP"
  • "Windows XP (64 bits)"
  • "Windows 2003"
  • "Windows 2003 (64 bits)"
  • "Windows 2003 R2"
  • "Windows 2003 R2 (64 bits)"
  • "Windows 2008"
  • "Windows 2008 (64 bits)"
  • "Windows 2008 R2"
  • "Windows 2008 R2 (64 bits)"
  • "Windows Vista"
  • "Windows Vista (64 bits)"
  • "Windows 7"
  • "Windows 7 (64 bits)"

Note: Wine reports itself as Windows XP 32 bits (even if the Linux host is 64 bits). ReactOS reports itself as Windows 2000.


Variables Details [hide private]

__revision__

Value:
'$Id: version.py 441 2009-11-11 01:36:44Z QvasiModo $'