Skip calling PhpShowErrorService when the user has cancelled the operation. Add checks for the `cancelled` flag in PhUiStopService and PhUiDeleteService (SystemInformer/actions.c) to prevent error dialogs from being shown after a user-initiated cancellation.
Add phnt.vcxitems as a Shared Items project that centralizes PHNT headers and include directory. Import the new phnt.vcxitems and remove hardcoded phnt include paths. Also add the phnt project entry to the .sln and .slnx, and clean up an extraneous suffix from the VisualStudioVersion line in the solution file.
Introduce many new highlighting settings and UI grouping for Options -> Highlighting, including thread, network, environment, token, memory and module color options. Add menu flags to highlight native/mapped modules and several thread wait types; wire them into dialogs and list handling. Rename and use cached process monitor settings (PhCsEnableProcessMonitor / PhCsProcessMonitorLookback / PhCsProcessMonitorCacheLimit) and update related checks. Fix TreeNew invalidation/sorting behavior to avoid unconditional rebuilds and ensure proper node invalidation. Populate default settings and cached getters for the new options.
- 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.
Replace InsertTailList/RemoveEntryList with InsertTailListNoFence/RemoveEntryListNoFence to avoid unnecessary memory fences and reduce overhead while preserving correctness.
Replace manual bitmasking of the HRESULT with HRESULT_FACILITY() and HRESULT_SEVERITY() . This makes the Win32 error check clearer and uses standard macros for determining FACILITY_WIN32 and SEVERITY_ERROR while preserving the original behavior.