by Roderick Thompson (12 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 1st April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Find out the processor type of a system and the total number of processors in a machine using a single API call and no components.
API Declarations
Public Type SYSTEM_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type
Dim InfoResult As SYSTEM_INFO
GetSystemInfo InfoResult
MsgBox "Your CPU type is " & InfoResult.dwProcessorType
MsgBox "You have " & InfoResult.dwNumberOrfProcessors & " processor(s)"
End Sub
No comments have been posted about Find out the processor type of a system and the total number of processors in a machine using a sin. Why not be the first to post a comment about Find out the processor type of a system and the total number of processors in a machine using a sin.