This change moves main-window setup to WM_CREATE to avoid invalid initial layouts, improves dialog focus and window-placement restoration, and includes a wide set of Win32/UI correctness fixes across the app. It also adds thread-stack and Wow64 safety handling, improves token details (authority/RID and elevated-privilege highlighting), and broadens the low-level documentation comments. The update also adjusts a few build settings in CustomBuildTool to improve runtime behavior.
Move the bespoke timing/CPUID probing from PhSipUpdateCpuPanel into a new helper PhSipGetCpuInterceptLatency() to centralize intercept-latency calculation and simplify platform-specific handling. Refactor PhSipUpdateProcessorPerformanceDistribution() to use per-branch typed locals and direct array indexing for state hitcounts (improves readability and correctness of pointer arithmetic). Also apply a small control-flow/formatting fix in PhSipGetCpuFrequencyFromDistributionLegacy().
- Add SysInfoMinimumGraphHeight and SysInfoScrollEnabled settings.
- Remove redundant TreeNew_NodesStructured calls to avoid extra re-structuring.
- Fix off-by-one checks on hybridProcessorTypeList (use >=).
- Add null/empty checks before indexing directory lists in CLR metadata handling.
- Use PhShowStatusHR and correct failure logic when CLR table enumeration fails.
- Replace mutable PVOID sortFunctions arrays with CONST _CoreCrtSecureSearchSortCompareFunction and use the correct function pointer type for sortFunction in several peview tree callbacks.
- Replace SetWindowLongPtr reset with PhSetWindowProcedure for prop sheet cleanup.
- Change dwCountElems type to ULONG in pdb printing.
* Display core parking status in the CPU tab of the System Information window
* Fix display of time statistics. Use named index for time statistics.
* Use NtQuerySystemInformationEx instead of GetSystemCpuSetInformation. Don't pass a handle to a process as we aren't interested in whether CPU set is allocated to any process (the indirected handle still has to be valid and point to 0).
* Use the size field from SYSTEM_CPU_SET_INFORMATION to determine the offset to the next set when iterating CPU sets instead of indexing.
---------
Co-authored-by: dmex <dmex04@gmail.com>
Co-authored-by: Johnny Shaw <johnny.shaw@live.com>