Eliminate the main-window-DPI globals that bleed across dialogs on
secondary monitors. Window-aware code now passes its own DPI:
- Delete PhSystemDpi, PhSmallIconSize, PhLargeIconSize and
PhGuiSupportUpdateSystemMetrics; remove the mainwnd.c invocation
on WM_DPICHANGED.
- PhGetApplicationIcon and PhGetStockApplicationIcon now require a
WindowDpi parameter; PhGetApplicationIconEx is folded into
PhGetApplicationIcon. PhGetStockApplicationIcon keeps the shared
icon contract via a 4-slot DPI-keyed cache so multiple monitors
coexist without thrash.
- All ~50 callers updated to source DPI from their owning window
(PhGetWindowDpi for hwnd-bearing call sites; PhGetTaskbarDpi for
the tray icon; PhGetSystemDpi for window-class registration and
parentless task dialogs).
- PhSetApplicationWindowIcon now thin-wraps PhSetApplicationWindowIconEx
with PhGetWindowDpi(hwnd), so the 63 legacy call sites get
per-window-DPI icons without per-site edits.
- srvprv.c and mainwnd.c read PhProcessImageListWindowDpi instead
of PhSystemDpi/PhSmallIconSize.X for service and process icons.
Correct several bugs and improve correctness/safety in basesup.c:
- Fix misleading/incorrect parameter comments for virtual memory APIs (BaseAddress semantics and read/write descriptions).
- Adjust PhProtectVirtualMemory to only store OldProtection when caller provided a pointer and to preserve the function's original status return path.
- Restrict the AVX512 fast path to 64-byte aligned From/To addresses to avoid misaligned vector accesses.
- Implement exact unsigned 32-bit to float/double conversion for AVX/AVX2/SSE code paths by clearing the sign bit and adding 2^31 when needed (added masks and scale constants), and simplify shuffles for the SSE path.
These changes fix correctness issues when converting uint64 values via decomposed 32-bit lanes, and prevent unsafe vectorized memory access on unaligned buffers.
Replace ReadULongPtrAcquire(&Value) with a direct read of Value in PhpOptimizeQueuedLockListEx and PhpPrepareToWakeQueuedLock. This removes unnecessary atomic acquire semantics at those sites and reduces overhead by using the existing Value variable directly.