The MediaPlayer check ran on an STA thread with no exception handling: a WPF
NotSupportedException from new MediaPlayer(), an exception from Open or from an
event handler inside Dispatcher.Run ended the whole Titano.Core.Windows.Tests
process. Every outcome now goes through one Finish that closes the player and
stops the dispatcher once, and the exception is rethrown on the test thread with
its own type and stack trace.
Where Windows Media Player is missing the playback test passed with only a log
line. It is split into MediaPlayerOpensTheSoftwareH264Output, skipped with the
reason where Windows Media Player is missing or unusable, and
SourceReaderDecodesTheSoftwareH264Output, which runs on every Windows with Media
Foundation. MediaPlayerOpensTheHardwareHevcMain10Output also opens the hardware
HEVC Main10 output where a hardware encoder and an HEVC decoder exist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
BRIEF §20.2 lists a MediaPlayer playback check after the Media Foundation encode
smoke test; the encoder tests stopped at the MP4 inspector. The new test encodes
two seconds of software H.264, opens the file with WPF's MediaPlayer and checks
its natural size and duration (failing on MediaFailed or a timeout), then
decodes the first frame with a Media Foundation source reader and checks its
size, the file's duration and the picture that was encoded. Without Windows Media
Player (Windows Server, "N" editions) the source reader decode is the check.
Core.Windows.Tests references WPF through its framework reference only, so its
implicit usings stay as they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
SleepBlocker requests ES_CONTINUOUS | ES_SYSTEM_REQUIRED (optionally the
display) from a dedicated thread, because the execution state belongs to the
calling thread; disposing from any thread clears it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
DwmWindow sets dark mode (attribute 20, 19 on older Windows 10), Mica/none
backdrop, corner preference and caption/border colours, returning false for
null or stale windows and unsupported builds. SystemTheme reads
AppsUseLightTheme and the accent colour (DWM AccentColor, else
DwmGetColorizationColor); SystemThemeWatcher raises Changed from a
RegNotifyChangeKeyValue thread when either value actually changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
Dpapi.Protect/Unprotect wrap CryptProtectData/CryptUnprotectData in the
current-user scope with optional entropy and no UI; decrypted native buffers
are zeroed before LocalFree. String helpers return Base64 for JSON settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
VolumeInfo reads label, file system, serial, capacity, drive type and DCIM
presence (no "insert disk" prompts) and exposes the card identity
{serial:X8}-{label}-{capacity}. RemovableVolumeWatcher runs a hidden
top-level window on its own message loop for WM_DEVICECHANGE volume unit
masks (message-only windows receive no broadcasts) plus a 3 s DriveInfo poll,
diffing snapshots so each change is raised once. VolumeEjector locks
(with retries), dismounts, allows removal and ejects; FormatDialog shows
SHFormatDrive with quick format preselected and refuses the system drive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
WicDecoderProvider decodes through a pull chain (decoder, Fant scaler to
MaxLongEdge, format converter) read in bounded row bands. Integer sources are
requested as 64bppRGBA and linearised with the exact sRGB EOTF (Linear16);
float/fixed sources as 128bppRGBAFloat (scRGB, already linear). The Exif
orientation (photo policy, then raw IFD queries) is applied while
de-interleaving instead of through IWICBitmapFlipRotator, which Microsoft
documents as quadratic over scanline decoders.
CodecInventory enumerates installed decoders (CreateComponentEnumerator),
probes HEVC/AV1 decoders with MFTEnumEx and identifies the Raw Image
Extension by package family, since it shares the in-box RAW codec's CLSID.
It maps every ImageFileFormat to its decoder, native flag and the Store
extensions (product ids, ms-windows-store links) that would unlock it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
ShellLauncher opens only http(s) and ms-windows-store URLs and reveals files
(SHOpenFolderAndSelectItems) or folders ("explore") on an STA. TaskbarProgress
wraps ITaskbarList3 and returns false for null or stale windows. KnownFolders
reads LocalAppData/Pictures via SHGetKnownFolderPath. AppPaths resolves the
data root (%LOCALAPPDATA%\Titano or .\data in portable mode) and refuses to
create it inside a OneDrive sync root (environment variables and
HKCU\Software\Microsoft\OneDrive\Accounts\*\UserFolder).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC