Total Commander can have several of our plugins loaded at the same time — SnipClip, RecentTab, future ones, all in the same TC process. If a plugin registers a background window (like SnipClip's ClipWatch, which listens for clipboard changes) under a generic name such as "BackgroundWindow", another plugin running at the same time could accidentally use the same name — Windows doesn't keep window classes separate per plugin.
That's why every window and every named Windows message a plugin registers itself gets a prefix with the plugin's name: TC_SnipClip_BackgroundWnd_v1 instead of just BackgroundWnd. This prevents collisions between plugins running at the same time, without the plugins ever having to coordinate at runtime — the name alone is enough.
The appended version number (_v1) is there on purpose: if the meaning of this window class or message changes later (e.g. a new message format), it can be separated cleanly through a new version number, without confusing old plugin instances that are still running.
- ClipWatch background window: TC_SnipClip_BackgroundWnd_v1
- Lister windows: TC_SnipClipLister_Container_v1, TC_SnipClipLister_ImagePreview_v1
- The registered message between WFX and WLX (the Lister has written the corrected text to the clipboard): SnipClip_OwnClipboardWrite_v2 — version 2 because the order changed: the message is now sent only after a successful write, no longer before it. This is exactly what the version number is for.
All names live centrally in snip_shared.h, so WFX and WLX are guaranteed to use the same value without maintaining it in two places in the code.