Add opt-in KSwitcher LAN discovery and mutual code pairing preview

This commit is contained in:
agrynco committed 2026-11-06 15:30:06 +02:00
1 parent 346af2256f
commit 9b565dd55e
17 files changed
+743 -21

No files matched your search

+7
View File
@@ -40,6 +40,13 @@ LRESULT configurationRequest(App &app, HWND sender, const COPYDATASTRUCT &messag
{
switch (message.dwData)
{
case ConfigLan:
{
if (!message.cbData || message.cbData > 4096) throw std::runtime_error("Invalid LAN request.");
auto first = static_cast<const unsigned char *>(message.lpData);
reply = app.lanCommand(Bytes(first, first + message.cbData));
break;
}
case ConfigSyncConflicts:
reply = app.syncConflictData();
break;