Return the WinHTTP error status and free the allocated buffer when a read fails, rather than treating the failure as end-of-stream and returning partial data.
- Themed status bar/header: hot-part tracking with partial invalidation, owner-draw/icon/RTL support, sizegrip drawn last, header images/alignment, buffered header paint, DPI change handling, and capture-change hover reset.
- Fill erase background in dialog/static hooks and sysinfo container to avoid flicker; add menu popup border frame.
- Explorer theme mode follows the Windows dark preference.
- Service list: add 'Group services by' (type, load order group, svchost group, start type) with synthetic group nodes.
- Session properties: query nltest account info on a background thread and decode its security descriptor with a read-only permissions viewer.
- Add PhIsLaunchedByTaskScheduler and PhGetWindowsBuildString.
- phlib buffered paint uses UxTheme unless PHLIB_PAINT_BUFFER is defined.
- Add I/O total bytes process column; set initial focus on several process property pages.
- Plugins: only walk WOW64 stacks for WOW64 processes, add WindowExplorer pause/resume, remove disk cache events page, refresh frame on netoptions border changes, and fix Updater SymCrypt hash size init.
Replace many fixed and resize-path allocations with safe variants that return STATUS_NO_MEMORY instead of raising or proceeding with NULL buffers. The change also fixes a few API correctness issues, including the WinRT picker/storage IIDs, job object limit setup, and hex editor repaint/capture handling, while expanding GUI support declarations and inline documentation.
This changeset overhauls several UI infrastructure paths: it adds richer column drag/drop visuals, expands the search box with fuzzy matching and match-range APIs, and refactors theme handling (including Explorer-style palette support, buffered/non-client paint cleanup, and new theme file utilities). It also hardens core behavior with many reliability fixes, such as bounded HTTP download buffering, safer process/service enumeration and handle ownership updates, improved window/context lifecycle handling, DPI/layout fixes, and broader consistency updates across dialog/list-view drawing and helper APIs.
Add optional TotalLength to PhHttpReadDataToBuffer to allow pre-allocation when the total size is known; otherwise fall back to page-sized allocation and ensure reallocation grows enough for incoming chunks. Update callers to pass 0 when unknown. Change PhHttpDownloadToFile to tolerate missing Content-Length (common with chunked transfers): query Content-Length optionally, avoid failing if absent, only set file size hint and compute percent/progress when a total is available, and only validate final size when total was provided. Replace several WinHttp option queries to use the request handle instead of the session handle (certificate, request times, connection stats, extended error), switch PhHttpQueryStatusCode to use WINHTTP_QUERY_STATUS_CODE | WINHTTP_QUERY_FLAG_NUMBER, and add a null-check in the WinHTTP status callback to avoid dereferencing a null context. Small cleanups: ensure allocation/resizing logic always meets needed capacity.