Expanded Clipboard (Win+V)
Raises the 25-item cap of Windows clipboard history (Win+V) and lifts the per-item / total buffer size limit so large images stick.
Author: takattowo
Raises the 25-entry cap on Windows 11 clipboard history (the list
shown by Win+V) and lifts the per-item size cap so large image
entries are kept.
Targeting
The clipboard history service (cbdhsvc.dll) is hosted in a
per-user svchost.exe. Windhawk's @include has no service-level
targeting, so the engine injects this mod into every svchost
instance — but the mod only installs anything in the instance that
hosts the clipboard service, identified from the command line
(svchost.exe -k <Group> [-p] [-s <Service>]): an exact
-s cbdhsvc[_*] match, or, for unsplit instances, the -k
group's member list in the registry. Every other svchost instance
bails out in Wh_ModInit without installing anything. This avoids
breaking unrelated svchost-hosted services
(https://github.com/ramensoftware/windhawk-mods/issues/5060).
cbdhsvc.dll is loaded lazily, so it usually isn't loaded yet
when Wh_ModInit runs. In that case the mod hooks
kernelbase!LoadLibraryExW — only in the hosting instance — and
applies the symbol hooks as soon as the DLL appears, before the
service starts using it.
Hook targets
Hosted in cbdhsvc.dll:
ClipboardSettingsImpl::get_ClipboardHistoryMaxItemsCount:
entry-count cap (default 25).
ClipboardSettingsImpl::get_ClipboardHistoryMaxItemSizeInBytes:
per-item byte cap (default 4 MiB).
ClipboardSettingsImpl::get_ClipboardHistoryMaxSizeInBytes:
total in-memory buffer cap.
DataPackageHelper::CanIncludeInClipboardHistory: opt-in
override of the per-item allow check.
Configuration
maxItems (default 100, range 25..5000): entry cap.
maxItemSizeMB (default 256, range 4..4096): per-item and
total buffer byte cap, in MB.
forceIncludeAll (default off): when on, force the allow check
to true.
Logs
Open Windhawk Logs and filter by the mod name.