홈 · 개발 참고자료

개발 참고자료

[파워빌더] Get the CPU speed

작성자
관리자
작성일
2016-10-16
조회
10143
분류
파워빌더
With NT (or better), the cpu speed is stored in the registry atHKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0
~Mhz (dword)

The value is the Mhz - 1 , so for 2.4 Ghz, the value is 2399.ulong speed
string cpuname

RegistryGet( &
"HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", &
"~~MHz", ReguLong!, speed)

RegistryGet( &
"HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", &
"ProcessorNameString", RegString!, cpuname)

MessageBox(cpuname, string(speed) + "Mhz")