C + + Read CPU serial number __c++

Source: Internet
Author: User
Tags intel core i5

This article collects C + + reads the CPU serial number the related information


1. WMIC command

Open Cmd.exe as an administrator,

C:\windows\system32>wmic CPU Get Processorid

Processorid
Bfebfbff****06e3

The BF begins with the ID number of the CPU, length "16", and the current processor model is "INTEL CORE i5".

-------------------------Split Line-------------------------

2, "reprint" Cpuid Way
Hardware Information Acquisition Series--Get the basic information and extended information of CPU through CPUID instruction

Description: See Snow Forum, CPUID


About CPU serial number problem, and how to obtain x64 under the CPU Processorid

Description: Fudong071234,__cpuidex


__cpuidex's explanation on MSDN

__cpuid's explanation on MSDN (English)

Description: Msdn,__cpuidex


How to use CPUID instructions in each version of VC and 64-bit

Description: cnblogs,zyl910,64 bit, VC version compatible



2017-2-8 10:35:50, Shanghai Baoshan, Youyi Road.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.