WMI ProcessorType

The CPU alias for WMIC returns a value called ProcessorType, MSDN states that there are 6 possible values:

1 (0x1) Other
2 (0x2) Unknown
3 (0x3) Central Processor
4 (0x4) Math Processor
5 (0x5) DSP Processor
6 (0x6) Video Processor

http://msdn.microsoft.com/en-us/library/aa394373 (v = vs .85) .aspx

Is it possible for a processor of any type other than 3 to serve as the main (or sole) processor? I am writing a hardware hash function, and I do not want to include specialized processors if there is no general-purpose processor.

+4
source share
2 answers

, . , WMI . WMI, . , , , Intel, AMD, NVidia. . , , , . , , .

, 99,99% . 3 .

, , - . , .

+6

API GetNativeSystemInfo (link), .

void WINAPI GetNativeSystemInfo(
  _Out_  LPSYSTEM_INFO lpSystemInfo
);

SYSTEM_INFO ()

typedef struct _SYSTEM_INFO {
  union {
    DWORD  dwOemId;
    struct {
      WORD wProcessorArchitecture;
      WORD wReserved;
    };
  };
  DWORD     dwPageSize;
  LPVOID    lpMinimumApplicationAddress;
  LPVOID    lpMaximumApplicationAddress;
  DWORD_PTR dwActiveProcessorMask;
  DWORD     dwNumberOfProcessors;
  DWORD     dwProcessorType;
  DWORD     dwAllocationGranularity;
  WORD      wProcessorLevel;
  WORD      wProcessorRevision;
} SYSTEM_INFO;

dwProcessorType:

PROCESSOR_INTEL_386 (386)
PROCESSOR_INTEL_486 (486)
PROCESSOR_INTEL_PENTIUM (586)
PROCESSOR_INTEL_IA64 (2200)
PROCESSOR_AMD_X8664 (8664)
PROCESSOR_ARM (Reserved)

wProcessorLevel , , wProcessorRevision , .

+2

Source: https://habr.com/ru/post/1537347/


All Articles