

The information returned with various values of InfoType is processor-dependent. The information returned has a different meaning depending on the value passed as the InfoType parameter. The supported features and CPU type information is returned in CPUInfo, an array of four 32-bit integers that is filled with the values of the EAX, EBX, ECX, and EDX registers (in that order) after the cpuid instruction is called.

CPUID details: Generates the cpuid instruction available on x86 and 圆4, which queries the processor for information about the supported features and CPU type. ProcessorId doesn't mean the Serial Number. Let's work to help developers, not make them feel stupid.Ĭode Block Imports System.Management Module Module1 Sub Main() Dim cpuInfo As String = String.Empty Dim temp As String = String.Empty Dim mc As ManagementClass = New ManagementClass( 'Win32_Processor') Dim moc As ManagementObjectCollection = mc.GetInstances For Each mo As ManagementObject In moc If (cpuInfo = String.Empty) Then ' only return cpuInfo from first CPU cpuInfo = mo.Properties( 'ProcessorId').Value.ToString Console.WriteLine(( 'CPU ID: ' & cpuInfo)) End If Next Console.ReadLine() End Sub End Module By the way, here is another good source-opened sample. Provide an answer or move on to the next question. Don't tell someone to read the manual.If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
