mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2025-07-09 03:12:08 +00:00
Update cpu_speed.c
This commit is contained in:
parent
24f2532913
commit
200f998402
@ -26,5 +26,13 @@ int wmain(void) {
|
|||||||
|
|
||||||
wprintf(L"CPU speed: %lu MHz\n", mhz);
|
wprintf(L"CPU speed: %lu MHz\n", mhz);
|
||||||
|
|
||||||
|
r = RegCloseKey(key);
|
||||||
|
|
||||||
|
if (r != ERROR_SUCCESS) {
|
||||||
|
|
||||||
|
wprintf(L"Failed to close registry handle %ld", GetLastError());
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user