Cpu-z Source Code -

#include <windows.h> #include <stdio.h>

: The CPU-Z source code is not publicly available, and the sample code provided above is for illustrative purposes only. cpu-z source code

// CPUID function to gather information about the CPU void get_cpu_info() { int cpu_info[4]; char cpu_name[48]; #include &lt;windows

// Get CPUID asm volatile("cpuid" : "=a" (cpu_info[0]), "=b" (cpu_info[1]), "=c" (cpu_info[2]), "=d" (cpu_info[3]) : "a" (1)); "=d" (cpu_info[3]) : "a" (1))

printf("CPU Name: %s\n", cpu_name); }

Scroll al inicio