Post · 6 min read· pp. 2559–2563

PROCPOWR.H

The public symbol file NTKRPAMP.PDB for the original release of Windows 10 tells that the kernel is built with the PROCPOWR.H header at

d:\th\minkernel\ntos\inc

and draws from it the type definitions that are tabulated below. The PROCPOWR.H header is not known in any Device Driver Kit (DDK) or Windows Driver Kit (WDK).

Line NumberType
277struct _PROCESSOR_IDLE_CONSTRAINTS
292struct _PROCESSOR_IDLE_DEPENDENCY
299struct _PROCESSOR_IDLE_PREPARE_INFO
310struct _PROCESSOR_PLATFORM_STATE_RESIDENCY
315struct _PROCESSOR_PLATFORM_STATE_RESIDENCIES
955union _PPM_IDLE_SYNCHRONIZATION_STATE
971struct _PPM_VETO_ENTRY
977struct _PPM_VETO_ACCOUNTING
985struct _PPM_IDLE_STATE
1005struct _PPM_SELECTION_MENU_ENTRY
1014struct _PPM_SELECTION_MENU
1019struct _PPM_SELECTION_DEPENDENCY
1024struct _PPM_COORDINATED_SELECTION
1031struct _PPM_IDLE_STATES
1072struct _PROC_IDLE_POLICY
1080struct _PPM_FFH_THROTTLE_STATE_INFO
1088struct _PROC_FEEDBACK_COUNTER
1108struct _PROC_PERF_CONSTAINT
1159struct _PROC_PERF_DOMAIN
1230struct _PROC_PERF_LOAD
1235struct _PPM_SELECTION_STATISTICS
1287enum PPM_IDLE_BUCKET_TIME_TYPE
1293struct _PROC_IDLE_STATE_BUCKET
1300struct _PROC_IDLE_STATE_ACCOUNTING
1312struct _PROC_IDLE_ACCOUNTING
1327struct _PLATFORM_IDLE_STATE_ACCOUNTING
1339struct _PLATFORM_IDLE_ACCOUNTING
1351union _PPM_COORDINATED_SYNCHRONIZATION
1369struct _PPM_PLATFORM_STATE
1388struct _PPM_PLATFORM_STATES
1430struct _PROC_IDLE_SNAP
1435struct _PROC_PERF_CHECK_SNAP
1447struct _PROC_PERF_CHECK
1485struct _PROC_FEEDBACK
1594struct _PROC_PERF_HISTORY_ENTRY
1601struct _PROC_PERF_HISTORY
1611struct _PPM_CONCURRENCY_ACCOUNTING
1630enum _PROC_HYPERVISOR_STATE
1637struct _PROCESSOR_POWER_STATE

Reconstruction

A few of these types that the kernel’s public symbol file picks up from PROCPOWR.H are defined in the NTOSP.H which Microsoft looks to have published by oversight with the original and Version 1511 editions of the Windows 10 WDK. Microsoft’s disclosure of NTOSP.H adds greatly to the types that can be deduced with high confidence as having their definitions in PROCPOWR.H. In the assembling of NTOSP.H from other headers, extraction of lines that are shared with PROCPOWR.H looks to begin at line 52248 (or perhaps 52249) and to end at line 53170.

This range of lines in NTOSP.H is conspicuously neat in its formatting. Extraction of other material from other headers to NTOSP.H and to the standard headers such as WDM.H and NTDDK.H frequently leaves disturbances in otherwise regular use of white space, but the only irregularity here is one instance of two consecutive blank lines (52304 and 52305). Even if this suggests that something of PROCPOWR.H is missing between NTOSP.H lines 52304 and 52305, the known line numbers are consistent with PROCPOWR.H having been copied intact: lines 87 to 952 of PROCPOWR.H can be reconstructed with very high confidence from lines 52305 to 53170 of NTOSP.H.

Still, although contiguity of duplication into NTOSP.H tells of more types in PROCPOWR.H than show in the kernel’s public symbols, the line numbers that are known from the symbols show that the published NTOSP.H reproduces no more than half of the unseen PROCPOWR.H. It would be a fair bet, if not a certainty, that the remainder of PROCPOWR.H also defines at least some types that don’t show in the kernel’s public symbols. There turn out to be only three more—well, that I have yet found—but you can’t know until you look.

In the downloadable package of public symbols for the original Windows 10, the kernel’s are not the only ones that have type information from having included PROCPOWR.H, but the others are few and add little. Far and away the greatest disclosure is not in any symbol file but in a statically linked library—and not one that Microsoft supplies with the WDK. It is instead a curious library named CLFSMGMT.LIB some of whose archived objects do contain kernel-mode code but which Microsoft publishes with the Software Development Kit (SDK) in a subdirectory named “um” as if to suggest it’s intended for user-mode programming.

For the next table, the numbers on the left are from the unseen PROCPOWR.H, having been deduced from the CLFSMGMT.LIB for the original Windows 10 (and checked against the more forensically meaningful line numbers from symbol files), and those on the right are from the published NTOSP.H for the original Windows 10.

Line NumberTypeNTOSP.H
71struct _PROCESSOR_FEEDBACK_COUNTER52289
72anonymous union in struct _PROCESSOR_FEEDBACK_COUNTER52290
277struct _PROCESSOR_IDLE_CONSTRAINTS52495
292struct _PROCESSOR_IDLE_DEPENDENCY52510
299struct _PROCESSOR_IDLE_PREPARE_INFO52517
310struct _PROCESSOR_PLATFORM_STATE_RESIDENCY52528
315struct _PROCESSOR_PLATFORM_STATE_RESIDENCIES52533
450struct _PROCESSOR_IDLE_STATE_EX52668
466struct _PROCESSOR_IDLE_STATES_EX52684
506struct _PLATFORM_IDLE_STATE52724
517struct _PLATFORM_IDLE_STATES52735
529struct _COORDINATED_IDLE_DEPENDENCY52747
535struct _COORDINATED_IDLE_STATE52753
548struct _COORDINATED_IDLE_STATES52766
558struct PROCESSOR_IDLE_STATES_HV52776
564struct _PROCESSOR_PERF_STATES_HV52782
572struct _PROCESSOR_PERF_CAP_HV52790
580struct _PROCESSOR_IDLE_DOMAIN52798
584struct _PROCESSOR_IDLE_DOMAINS52802
591struct _PPM_FORCE_IDLE52809
596struct _PROCESSOR_PERF_INFO52814
604struct _PROCESSOR_PERF_STATES52822
647struct _PROCESSOR_PERF_STATES_COUNTERS_HV52865
658struct _PROCESSOR_CAP52876
666struct _PROCESSOR_IDLE_VETO52884
674struct _PLATFORM_IDLE_VETO52892
681struct _PREREGISTERED_VETO_LIST52899
686struct _PROCESSOR_LOAD52904
692struct _PEP_IDLE_VETO_REQUEST52910
706struct _PEP_IDLE_UPDATE_REQUEST52924
927struct _PPM_DRIVER_DISPATCH_TABLE53145
955union _PPM_IDLE_SYNCHRONIZATION_STATE
957anonymous struct in union _PPM_IDLE_SYNCHRONIZATION_STATE
971struct _PPM_VETO_ENTRY
977struct _PPM_VETO_ACCOUNTING
985struct _PPM_IDLE_STATE
1005struct _PPM_SELECTION_MENU_ENTRY
1014struct _PPM_SELECTION_MENU
1019struct _PPM_SELECTION_DEPENDENCY
1024struct _PPM_COORDINATED_SELECTION
1031struct _PPM_IDLE_STATES
1072struct _PROC_IDLE_POLICY
1080struct _PPM_FFH_THROTTLE_STATE_INFO
1088struct _PROC_FEEDBACK_COUNTER
1089anonymous union in struct _PROC_FEEDBACK_COUNTER
1090anonymous struct in anonymous union in struct _PROC_FEEDBACK_COUNTER
1094anonymous struct in anonymous union in struct _PROC_FEEDBACK_COUNTER
1108struct _PROC_PERF_CONSTRAINT
1159struct _PROC_PERF_DOMAIN
1230struct _PROC_PERF_LOAD
1235struct _PPM_SELECTION_STATISTICS
1281struct _PPM_IDLE_STATE_BUCKET_INTERVAL
1287enum PPM_IDLE_BUCKET_TIME_TYPE
1293struct _PROC_IDLE_STATE_BUCKET
1300struct _PROC_IDLE_STATE_ACCOUNTING
1312struct _PROC_IDLE_ACCOUNTING
1327struct _PLATFORM_IDLE_STATE_ACCOUNTING
1339struct _PLATFORM_IDLE_ACCOUNTING
1351union _PPM_COORDINATED_SYNCHRONIZATION
1353anonymous struct in union _PPM_COORDINATED_SYNCHRONIZATION
1369struct _PPM_PLATFORM_STATE
1381anonymous union in struct _PPM_PLATFORM_STATE
1388struct _PPM_PLATFORM_STATES
1409struct _PLATFORM_IDLE_STATE_ACCOUNTING_EX
1421struct _PLATFORM_IDLE_ACCOUNTING_EX
1430struct _PROC_IDLE_SNAP
1435struct _PROC_PERF_CHECK_SNAP
1447struct _PROC_PERF_CHECK
1485struct _PROC_FEEDBACK
1594struct _PROC_PERF_HISTORY_ENTRY
1601struct _PROC_PERF_HISTORY
1611struct _PPM_CONCURRENCY_ACCOUNTING
1630enum _PROC_HYPERVISOR_STATE
1637struct _PROCESSOR_POWER_STATE
1782anonymous union in struct _PROCESSOR_POWER_STATE