Platforms to show: All Mac Windows Linux Cross-Platform
Back to SystemInformationMBS module.
SystemInformationMBS.WindowsProcessMachine as Integer
Function:
Queries the machine type of the current process.
Notes: This may return AMD64, while running in emulation on ARM64.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 22.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: This may return AMD64, while running in emulation on ARM64.
SystemInformationMBS.WinMajorVersion as Integer
Function:
The major version number of the operating system.
Example:
Notes:
Returns 5 on Windows 2000/XP and 6 on Windows Vista/7/8.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinMajorVersion)
Some examples using this method:
SystemInformationMBS.WinMinorVersion as Integer
Function:
The minor version number of the operating system.
Example:
Notes:
Returns 0 on Windows 2000/Vista and 1 on Windows XP/7 and 2 on Windows 8.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinMinorVersion)
Some examples using this method:
SystemInformationMBS.WinPlatformId as Integer
Function:
The operating system platform.
Example:
Notes:
This member can be VER_PLATFORM_WIN32_NT (2).
e.g. 2 on Windows XP.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinPlatformId)
This member can be VER_PLATFORM_WIN32_NT (2).
e.g. 2 on Windows XP.
SystemInformationMBS.WinProductKey as string
Function:
Returns the product key of the Windows installation.
Notes: Returns "" on any error.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 11.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Notes: Returns "" on any error.
See also:
Some examples using this method:
SystemInformationMBS.WinProductKey(path as string, name as string, keyStartIndex as Integer = 52) as string
Function:
Returns the product key of the Windows installation.
Notes:
Returns "" on any error.
With the right path and name you can read also the office versions.
For Office 10, it looks like you need to use 808 as offset.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 11.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
Returns "" on any error.
With the right path and name you can read also the office versions.
For Office 10, it looks like you need to use 808 as offset.
See also:
SystemInformationMBS.WinProductType as Integer
Function:
Any additional information about the system.
Example:
Notes:
e.g. 1 on Windows XP.
This member can be one of the following values:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinProductType)
e.g. 1 on Windows XP.
This member can be one of the following values:
VER_NT_DOMAIN_CONTROLLER | 2 | The system is a domain controller and the operating system is Windows Server 2008, Windows Server 2003, or Windows 2000 Server. |
VER_NT_SERVER | 3 | The operating system is Windows Server 2008, Windows Server 2003, or Windows 2000 Server. Note that a server that is also a domain controller is reported as VER_NT_DOMAIN_CONTROLLER, not VER_NT_SERVER. |
VER_NT_WORKSTATION | 1 | The operating system is Windows Vista, Windows XP Professional, Windows XP Home Edition, or Windows 2000 Professional. |
SystemInformationMBS.WinServicePackMajor as Integer Deprecated
Function:
The major version number of the latest Service Pack installed on the system.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinServicePackMajor)
This item is deprecated and should no longer be used.
Notes:
For example, for Service Pack 3, the major version number is 3. If no Service Pack has been installed, the value is zero.
SystemInformationMBS.WinServicePackMinor as Integer Deprecated
Function:
The minor version number of the latest Service Pack installed on the system.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinServicePackMinor)
This item is deprecated and should no longer be used.
Notes:
For example, for Service Pack 3, the minor version number is 0.
SystemInformationMBS.WinSuiteMask as Integer
Function:
A bit mask that identifies the product suites available on the system.
Example:
Notes:
e.g. 256 on Windows XP.
This member can be a combination of the following values.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | System | MBS Util Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
MsgBox str(SystemInformationMBS.WinSuiteMask)
e.g. 256 on Windows XP.
This member can be a combination of the following values.
VER_SUITE_BACKOFFICE | 4 | Microsoft BackOffice components are installed. |
VER_SUITE_BLADE | &h0400 | Windows Server 2003, Web Edition is installed. |
VER_SUITE_COMPUTE_SERVER | &h4000 | Windows Server 2003, Compute Cluster Edition is installed. |
VER_SUITE_DATACENTER | &h0080 | Windows Server 2008 Datacenter, Windows Server 2003, Datacenter Edition, or Windows 2000 Datacenter Server is installed. |
VER_SUITE_ENTERPRISE | 2 | Windows Server 2008 Enterprise, Windows Server 2003, Enterprise Edition, or Windows 2000 Advanced Server is installed. Refer to the Remarks section for more information about this bit flag. |
VER_SUITE_EMBEDDEDNT | &h0040 | Windows XP Embedded is installed. |
VER_SUITE_PERSONAL | &h0200 | Windows Vista Home Premium, Windows Vista Home Basic, or Windows XP Home Edition is installed. |
VER_SUITE_SINGLEUSERTS | &h0100 | Remote Desktop is supported, but only one interactive session is supported. This value is set unless the system is running in application server mode. |
VER_SUITE_SMALLBUSINESS | 1 | Microsoft Small Business Server was once installed on the system, but may have been upgraded to another version of Windows. Refer to the Remarks section for more information about this bit flag. |
VER_SUITE_SMALLBUSINESS_RESTRICTED | &h0020 | Microsoft Small Business Server is installed with the restrictive client license in force. Refer to the Remarks section for more information about this bit flag. |
VER_SUITE_STORAGE_SERVER | &h2000 | Windows Storage Server 2003 R2 or Windows Storage Server 2003is installed. |
VER_SUITE_TERMINAL | &h0010 | Terminal Services is installed. This value is always set. If VER_SUITE_TERMINAL is set but VER_SUITE_SINGLEUSERTS is not set, the system is running in application server mode. |
VER_SUITE_WH_SERVER | &h8000 | Windows Home Server is installed. |
The items on this page are in the following plugins: MBS Util Plugin.
