VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Find out the processor type of a system and the total number of processors in a machine using a sin

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

Rate Find out the processor type of a system and the total number of processors in a machine using a sin




Dim InfoResult As SYSTEM_INFO
GetSystemInfo InfoResult
MsgBox "Your CPU type is " & InfoResult.dwProcessorType
MsgBox "You have " & InfoResult.dwNumberOrfProcessors & " processor(s)"

End Sub

Download this snippet    Add to My Saved Code

Find out the processor type of a system and the total number of processors in a machine using a sin Comments

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.

Post your comment

Subject:
Message:
0/1000 characters