benilla-re systems structs docs

GetCachedPowerInfo

function · core · orchestration

Address
0x42c0b0 · 36 bytes, up to 0x42c0d3
Meaning
Returns the cached result of 0x42c0e0, calling it once
Confidence
verified, proof one
Finding
core/time#processor-frequency

Finding: Processor frequency in core: time

OsGetCpuFrequency (0x42c060) returns the processor's frequency in hertz as a 64-bit integer. The first call runs QueryCpuMaxMhz (0x42c0e0); 0x42c0b0 keeps only whether it succeeded. On success the answer is MaxMhz of the first processor record, times 10⁶. Otherwise every call returns the largest counter rate the calibration has stored (0x884060), sleeping 500 ms while that is 0, without limit. The query fails when powrprof.dll will not load, CallNtPowerInformation is missing or the call returns a nonzero status. The output buffer is four 24-byte records. Per Microsoft's documentation (one record per logical processor, STATUS_BUFFER_TOO_SMALL for a short buffer), a host with more than four logical processors fails it and takes the fallback; that rests on the documentation, not the exe.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.