Find out the processor type of a system and the total number of processors in a machine using a sin
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
Rate Find out the processor type of a system and the total number of processors in a machine using a sin
(1(1 Vote))
Dim InfoResult As SYSTEM_INFO
GetSystemInfo InfoResult
MsgBox "Your CPU type is " & InfoResult.dwProcessorType
MsgBox "You have " & InfoResult.dwNumberOrfProcessors & " processor(s)"
End Sub
Find out the processor type of a system and the total number of processors in a machine using a sin Comments
No comments yet — be the first to post one!
Post a Comment