SamLogic Internet Components - Home
ActiveX: SysInfo      (Filename: SLSYSX.OCX)


SysInfo is an ActiveX component that returns technical information about the computer and Windows. It returns for example information about the processor speed (clock rate), available and total RAM memory and virtual 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 to the Program directory.
 
SystemStartupTime Date Returns the date and time when the system started.
.
SystemDirectory String Returns the path to the system directory.
 
TemporaryDirectory String Returns the path to the temporary directory used in the system.
 
WindowsDirectory String Returns the path to 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 of the operating system (Windows system) as a text string. For example "Windows 8" or "Windows 10".
 
     
 
 
Methods
 

GetProcessorSpeed () As Double

Returns the processor speed (clock rate) in MHz. In Windows 95/98/ME the processor speed is measured, which will take one second. In Windows 2000 and later the processor speed is read from the Windows Registry and the method will return immediately.
 
 
 
Example 1  - Get Windows version as a text string
 
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!"
 
 
< Go back
 
 
SamLogic