ActiveX: SysInfo      (Filename: SLSYSX.OCX)

SysInfo is an ActiveX control that returns technical information about the computer and Windows. It returns for example information about the processor speed, available RAM memory, Windows version number, the path to some important directories in Windows etc.


Properties

Name Type Description
CentralProcessor String Returns the name of the central processor in the computer system.
 
Country String Returns the name of the country where the application is running. 
 
CountryID Long Returns the country code of the country where the applications is running. The country code is based on international phone codes. 
 
Language String Returns the name of the language used in the system. 
 
LanguageID Long Returns the language identifier for the language used in the system.
 
MemAvailPhysical Long Returns the number of bytes of physical memory available in the system.
 
MemAvailVirtual Long Returns the number of bytes of virtual memory available in the system.
 
MemTotalPhysical Long Returns the total number of bytes of physical memory in the system.
 
MemTotalVirtual Long Returns the total number of bytes of virtual memory in the system.
 
NumProcessors Long Returns the number of processors in the system.
 
OSBuildNr Long Returns the build number of the operating system.
 
OSPlatformID Long Returns the operating system platform. Can be one of the following values:

  0 - PLATFORM_WIN32s 
  1 - PLATFORM_WIN32_WIN9x
  2 - PLATFORM_WIN32_NT
 
 
OSVersionMajor Long Returns the major version number of the operating system.
 
OSVersionMinor Long Returns the minor version number of the operating system.
 
ProcessorCount Long Returns the number of processors in the system.
 
ProcessorType Long Returns the type of processor.
 
ProcessorVendorID String Returns the processor vendor identifier. For the Intel family of processors it's "GenuineIntel".
 
ProgramFilesDirectory String Returns the path of the Program directory.
 
SystemStartupTime Date Returns the date and time when the system started.
.
SystemDirectory String Returns the path of the system directory.
 
TemporaryDirectory String Returns the path of the temporary directory used in the system.
 
WindowsDirectory String Returns the path of the Windows directory.
 
WindowsRegisteredCompany String Returns the registered owner of Windows (the organization).
 
WindowsRegisteredOwner String Returns the name of the registered owner of Windows.
 
WindowsVersion String Returns the version number of the operating system as a string. Can be one of the following values: "Windows 95", "Windows 98", "Windows ME", "Windows NT", "Windows 2000", "Windows XP", "Windows Server 2003" or "Windows Vista".
 


Methods 


GetProcessorSpeed () As Double

Returns the processor speed in MHz. When calling this method, it will take one second before the method returns. The reason to the delay is that it takes some time to make the measuring. GetProcessorSpeed uses the RDTSC processor instruction to measure the processor speed, which gives a very high accuracy.
 



Example 1  - Get Windows Version 

Dim S As String
S = "The operating system in this computer is " + SysInfo1.WindowsVersion + "!"
MsgBox S, vbInformation, "Info"



Example 2 - Get Processor Speed

Label1 = "Wait..."
DoEvents
Label1 = "The processor speed is " + CStr(SysInfo1.GetProcessorSpeed()) + " MHz!"



SamLogic Home Go Back