Update zlib to 1.4 and pick wire compression at runtime #9

Merged
yuanyuanxiang merged 2 commits from review/zlib-runtime-compress into main 2026-11-24 09:39:59 +00:00
26 changed files with 359 additions and 83 deletions

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
Prebuilt binaries under `compress/`, linked via `#pragma comment(lib, ...)`. Prebuilt binaries under `compress/`, linked via `#pragma comment(lib, ...)`.
- [zlib v1.3.2](https://zlib.net) - [zlib v1.4](https://zlib.net)
- [zstd v1.5.7](https://github.com/facebook/zstd/tree/v1.5.7) - [zstd v1.5.7](https://github.com/facebook/zstd/tree/v1.5.7)
- [x264 v0.164.3194](https://github.com/corecodec/x264) — GPL-2.0, see note below - [x264 v0.164.3194](https://github.com/corecodec/x264) — GPL-2.0, see note below
- [libyuv v190](https://chromium.googlesource.com/libyuv/libyuv) - [libyuv v190](https://chromium.googlesource.com/libyuv/libyuv)
+122 -30
View File
@@ -28,30 +28,46 @@ inline int WSAGetLastError()
#include <assert.h> #include <assert.h>
#include <string> #include <string>
#include <random> #include <random>
#if USING_ZLIB // 线缆压缩:Windows 客户端同时携带 zlib 与 zstd,运行期由 settings\compress 选择
// (默认 zstd,配置为 zlib 时使用 zlib)。POSIX 客户端只链接 libzstd。
#if defined(_WIN32)
# include "zlib/zlib.h" # include "zlib/zlib.h"
#define Z_FAILED(p) (Z_OK != (p)) # define CLIENT_HAS_ZLIB 1
#define Z_SUCCESS(p) (!Z_FAILED(p))
#else #else
# define CLIENT_HAS_ZLIB 0
#endif
#include "common/zstd_wrapper.h" #include "common/zstd_wrapper.h"
#define ZSTD_CLEVEL ZSTD_CLEVEL_DEFAULT
// ZSTD 库在客户端始终要链接:文件管理器的 ZSTA 归档(common/ZstdArchive.h)、
// common/zstd_wrapper.c 以及上面的版本日志都无条件引用 ZSTD_*,与线缆压缩
// 选择 zlib 还是 zstd 无关。此处在两种模式下都生效。
#ifdef _WIN32 #ifdef _WIN32
# ifdef _WIN64 # ifdef _WIN64
# pragma comment(lib, "zstd/zstd_x64.lib") # pragma comment(lib, "zstd/zstd_x64.lib")
# else # else
# pragma comment(lib, "zstd/zstd.lib") # pragma comment(lib, "zstd/zstd.lib")
# endif # endif
# include "common/iniFile.h" // CLIENT_PATH + settings\compress
#endif #endif
#define Z_FAILED(p) ZSTD_isError(p)
#define Z_SUCCESS(p) (!Z_FAILED(p)) // 读取 settings\compress:默认 zstd,值为 "zlib"(大小写不敏感)时使用 zlib。
#define ZSTD_CLEVEL ZSTD_CLEVEL_DEFAULT // 配置存放在客户端注册表(CLIENT_PATH)。服务端下发 COMMAND_SET_COMPRESS 会写同一个
#if USING_CTX // 键并触发重连;新连接在构造函数里重新读取,从而无需重启进程即可生效。
#define compress(dest, destLen, source, sourceLen) zstd_compress_auto(m_Cctx, dest, *(destLen), source, sourceLen, 1024*1024) static bool ClientCompressUsesZlib()
#define uncompress(dest, destLen, source, sourceLen) ZSTD_decompressDCtx(m_Dctx, dest, *(destLen), source, sourceLen) {
#if defined(_WIN32) && CLIENT_HAS_ZLIB
iniFile cfg(CLIENT_PATH);
std::string mode = cfg.GetStr("settings", "compress", "zstd");
for (size_t i = 0; i < mode.size(); ++i) {
if (mode[i] >= 'A' && mode[i] <= 'Z')
mode[i] = (char)(mode[i] - 'A' + 'a');
}
return mode == "zlib";
#else #else
#define compress(dest, destLen, source, sourceLen) ZSTD_compress(dest, *(destLen), source, sourceLen, ZSTD_CLEVEL_DEFAULT) return false;
#define uncompress(dest, destLen, source, sourceLen) ZSTD_decompress(dest, *(destLen), source, sourceLen)
#endif
#endif #endif
}
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
// Construction/Destruction // Construction/Destruction
@@ -244,6 +260,11 @@ IOCPClient::IOCPClient(const State&bExit, bool exit_while_disconnect, int mask,
#endif #endif
} }
// 线缆压缩模式:本连接构造时按配置读取一次(默认 zstd)。服务端下发
// COMMAND_SET_COMPRESS 后由 SetWireCompression() 原地改写,下一次建连生效。
m_useZlib = ClientCompressUsesZlib();
Mprintf("[IOCPClient] wire compress: %s\n", m_useZlib ? "zlib" : "zstd");
m_main = main; m_main = main;
m_conn = conn; // 保存 CONNECT_ADDRESS 指针。子连接 auth 在每次连接时通过 m_conn = conn; // 保存 CONNECT_ADDRESS 指针。子连接 auth 在每次连接时通过
// m_conn->clientID 现取主连接 ID(同一指针,主连接登录后填好的最新值)。 // m_conn->clientID 现取主连接 ID(同一指针,主连接登录后填好的最新值)。
@@ -296,7 +317,7 @@ IOCPClient::IOCPClient(const State&bExit, bool exit_while_disconnect, int mask,
m_Cctx = ZSTD_createCCtx(); m_Cctx = ZSTD_createCCtx();
m_Dctx = ZSTD_createDCtx(); m_Dctx = ZSTD_createDCtx();
auto n = ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, 0); auto n = ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, 0);
if (Z_FAILED(n)) { if (ZSTD_isError(n)) {
ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, 0); ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, 0);
} }
ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_compressionLevel, ZSTD_CLEVEL); ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_compressionLevel, ZSTD_CLEVEL);
@@ -307,6 +328,74 @@ IOCPClient::IOCPClient(const State&bExit, bool exit_while_disconnect, int mask,
#endif #endif
} }
// 线缆压缩/解压:按本连接构造时选定的 m_useZlib 走 zlib 或 zstd。
// 成功返回 true 并写回实际长度;失败返回 false。
bool IOCPClient::CompressData(BYTE* dst, ULONG& dstLen, const void* src, ULONG srcLen)
{
if (m_useZlib) {
#if CLIENT_HAS_ZLIB
uLongf n = (uLongf)dstLen;
int r = compress(dst, &n, (const Bytef*)src, (uLong)srcLen);
if (r != Z_OK)
return false;
dstLen = (ULONG)n;
return true;
#else
return false;
#endif
}
#if USING_CTX
{
size_t r = zstd_compress_auto(m_Cctx, dst, (size_t)dstLen, src, (size_t)srcLen, 1024 * 1024);
if (ZSTD_isError(r))
return false;
dstLen = (ULONG)r;
return true;
}
#else
{
size_t r = ZSTD_compress(dst, (size_t)dstLen, src, (size_t)srcLen, ZSTD_CLEVEL_DEFAULT);
if (ZSTD_isError(r))
return false;
dstLen = (ULONG)r;
return true;
}
#endif
}
bool IOCPClient::DecompressData(BYTE* dst, ULONG& dstLen, const void* src, ULONG srcLen)
{
if (m_useZlib) {
#if CLIENT_HAS_ZLIB
uLongf n = (uLongf)dstLen;
int r = uncompress(dst, &n, (const Bytef*)src, (uLong)srcLen);
if (r != Z_OK)
return false;
dstLen = (ULONG)n;
return true;
#else
return false;
#endif
}
#if USING_CTX
{
size_t r = ZSTD_decompressDCtx(m_Dctx, dst, (size_t)dstLen, src, (size_t)srcLen);
if (ZSTD_isError(r))
return false;
dstLen = (ULONG)r;
return true;
}
#else
{
size_t r = ZSTD_decompress(dst, (size_t)dstLen, src, (size_t)srcLen);
if (ZSTD_isError(r))
return false;
dstLen = (ULONG)r;
return true;
}
#endif
}
void IOCPClient::PrepareHeaderEncoderForConnect() void IOCPClient::PrepareHeaderEncoderForConnect()
{ {
if (!m_EncoderType) { if (!m_EncoderType) {
@@ -358,7 +447,7 @@ void IOCPClient::SetMultiThreadCompress(int threadNum)
#if USING_CTX #if USING_CTX
BOOL failed = TRUE; BOOL failed = TRUE;
if (threadNum > 1) { if (threadNum > 1) {
failed = Z_FAILED(ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, threadNum)); failed = ZSTD_isError(ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, threadNum));
} }
if (failed) { if (failed) {
ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, 0); ZSTD_CCtx_setParameter(m_Cctx, ZSTD_c_nbWorkers, 0);
@@ -1007,9 +1096,15 @@ VOID IOCPClient::OnServerReceiving(CBuffer* m_CompressedBuffer, char* szBuffer,
m_CompressedBuffer->ReadBuffer(CompressedBuffer, ulCompressedLength); m_CompressedBuffer->ReadBuffer(CompressedBuffer, ulCompressedLength);
m_Encoder->Decode(CompressedBuffer, ulCompressedLength, (LPBYTE)szPacketFlag); m_Encoder->Decode(CompressedBuffer, ulCompressedLength, (LPBYTE)szPacketFlag);
size_t iRet = uncompress(DeCompressedBuffer, &ulOriginalLength, CompressedBuffer, ulCompressedLength);
if (Z_SUCCESS(iRet)) { //如果解压成功 // 与发送同一模式:服务端按客户端首个压缩包识别算法,回包使用同一算法,
// 因此这里固定用本连接的 m_useZlib 解压。
ULONG ulDecompressedLength = ulOriginalLength;
bool decompressed = DecompressData(DeCompressedBuffer, ulDecompressedLength,
CompressedBuffer, ulCompressedLength);
ulOriginalLength = ulDecompressedLength;
if (decompressed) { //如果解压成功
// 优先看是不是 TOKEN_CONN_AUTH 响应;只有当 PerformConnAuth 正在等待时才消费。 // 优先看是不是 TOKEN_CONN_AUTH 响应;只有当 PerformConnAuth 正在等待时才消费。
// 不在等待状态时返回 false,包透传给 manager(manager 一般也不识别此 token, // 不在等待状态时返回 false,包透传给 manager(manager 一般也不识别此 token,
// 走 default 路径忽略,无副作用)。 // 走 default 路径忽略,无副作用)。
@@ -1058,27 +1153,24 @@ BOOL IOCPClient::OnServerSending(const char* szBuffer, ULONG ulOriginalLength, P
std::lock_guard<std::mutex> lock(m_Locker); std::lock_guard<std::mutex> lock(m_Locker);
{ {
int cmd = BYTE(szBuffer[0]); int cmd = BYTE(szBuffer[0]);
//乘以1.001是以最坏的也就是数据压缩后占用的内存空间和原先一样 +12 // 线缆压缩:运行期选择 zlib / zstd(默认 zstd)。zlib 用 compressBound 而不是
//防止缓冲区溢出// HelloWorld 10 22 // 1.001n+12 —— 后者对小于约 1KB 的包会比 compressBound 少 1 字节,导致
//数据压缩 压缩算法 微软提供 // compress() 返回 Z_BUF_ERROR、小包(心跳 ACK、控制命令)被静默丢弃。
//nSize = 436 #if CLIENT_HAS_ZLIB
//destLen = 448 unsigned long ulCompressedLength = m_useZlib
#if USING_ZLIB ? (unsigned long)compressBound(ulOriginalLength)
unsigned long ulCompressedLength = (double)ulOriginalLength * 1.001 + 12; : (unsigned long)ZSTD_compressBound(ulOriginalLength);
#else #else
unsigned long ulCompressedLength = ZSTD_compressBound(ulOriginalLength); unsigned long ulCompressedLength = (unsigned long)ZSTD_compressBound(ulOriginalLength);
#endif #endif
BYTE buf[1024]; BYTE buf[1024];
LPBYTE CompressedBuffer = ulCompressedLength>1024 ? new BYTE[ulCompressedLength] : buf; LPBYTE CompressedBuffer = ulCompressedLength>1024 ? new BYTE[ulCompressedLength] : buf;
int iRet = compress(CompressedBuffer, &ulCompressedLength, (PBYTE)szBuffer, ulOriginalLength); if (!CompressData(CompressedBuffer, ulCompressedLength, szBuffer, ulOriginalLength)) {
if (Z_FAILED(iRet)) { Mprintf("[ERROR] compress failed: srcLen %d, dstLen %d, mode=%s\n",
Mprintf("[ERROR] compress failed: srcLen %d, dstLen %d \n", ulOriginalLength, ulCompressedLength); ulOriginalLength, ulCompressedLength, m_useZlib ? "zlib" : "zstd");
if (CompressedBuffer != buf) delete [] CompressedBuffer; if (CompressedBuffer != buf) delete [] CompressedBuffer;
return FALSE; return FALSE;
} }
#if !USING_ZLIB
ulCompressedLength = iRet;
#endif
ULONG ulPackTotalLength = ulCompressedLength + m_Encoder->GetHeadLen(); ULONG ulPackTotalLength = ulCompressedLength + m_Encoder->GetHeadLen();
CBuffer m_WriteBuffer; CBuffer m_WriteBuffer;
HeaderFlag H = m_Encoder->GetHead(); HeaderFlag H = m_Encoder->GetHead();
+10
View File
@@ -210,6 +210,10 @@ public:
return OnServerSending(szBuffer, ulOriginalLength, mask); return OnServerSending(szBuffer, ulOriginalLength, mask);
} }
// 切换线缆压缩模式。只影响下一次建连(调用方随后 Disconnect,重连循环复用本对象);
// COMMAND_SET_COMPRESS 用它原地切换,避免 S_CLIENT_UPDATE 把进程内测试客户端停死。
void SetWireCompression(bool useZlib) { m_useZlib = useZlib; }
void SetServerAddress(const char* szServerIP, unsigned short uPort) void SetServerAddress(const char* szServerIP, unsigned short uPort)
{ {
m_Domain = szServerIP ? szServerIP : "127.0.0.1"; m_Domain = szServerIP ? szServerIP : "127.0.0.1";
@@ -437,6 +441,12 @@ protected:
// ConnectServer 成功后自动 auth 的 opt-in 标志。子连接构造后调 EnableSubConnAuth() 设为 true。 // ConnectServer 成功后自动 auth 的 opt-in 标志。子连接构造后调 EnableSubConnAuth() 设为 true。
bool m_subConnAuthEnabled = false; bool m_subConnAuthEnabled = false;
uint64_t m_subConnAuthClientID = 0; // 0 表示从 m_conn->clientID 现取 uint64_t m_subConnAuthClientID = 0; // 0 表示从 m_conn->clientID 现取
// 线缆压缩:本连接构造时读 settings\compress(默认 zstd;配置 zlib 时用 zlib);
// COMMAND_SET_COMPRESS 通过 SetWireCompression() 原地改写,下一次建连生效。
bool m_useZlib = false;
bool CompressData(BYTE* dst, ULONG& dstLen, const void* src, ULONG srcLen);
bool DecompressData(BYTE* dst, ULONG& dstLen, const void* src, ULONG srcLen);
#if USING_CTX #if USING_CTX
ZSTD_CCtx* m_Cctx; // 压缩上下文 ZSTD_CCtx* m_Cctx; // 压缩上下文
ZSTD_DCtx* m_Dctx; // 解压上下文 ZSTD_DCtx* m_Dctx; // 解压上下文
+33
View File
@@ -1126,6 +1126,39 @@ VOID CKernelManager::OnReceive(PBYTE szBuffer, ULONG ulLength)
break; break;
} }
case COMMAND_SET_COMPRESS: {
// 线缆压缩切换(zstd / zlib):写本机配置后只断开当前连接,复用 IOCPClient
// 原地切换 m_useZlib,由 StartClient 重连循环用新模式建链。不能置 S_CLIENT_UPDATE:
// 进程内测试客户端的 AutoRun 只在 S_SERVER_EXIT 时重启,详见下方断连处说明。
std::string mode;
if (ulLength > 1)
mode.assign((const char*)szBuffer + 1, ulLength - 1);
while (!mode.empty() && (mode.back() == '\0' || mode.back() == ' ' ||
mode.back() == '\r' || mode.back() == '\n'))
mode.pop_back();
for (size_t i = 0; i < mode.size(); ++i) {
if (mode[i] >= 'A' && mode[i] <= 'Z')
mode[i] = (char)(mode[i] - 'A' + 'a');
}
if (mode != "zlib" && mode != "zstd") {
Mprintf("[compress-switch] unsupported mode '%s', ignored\n", mode.c_str());
break;
}
if (m_cfg)
m_cfg->SetStr("settings", "compress", mode);
Mprintf("[compress-switch] set to %s, reconnecting\n", mode.c_str());
// 只断开当前连接,不要置 S_CLIENT_UPDATE:进程内测试客户端(MemoryModule 加载的
// ServerDll)的 AutoRun 只在 S_SERVER_EXIT 时重启,S_CLIENT_UPDATE 会让 TestRun
// 直接返回、AutoRun 退出,客户端停死且主控的"运行测试程序"菜单永久置灰。
// 重连循环复用同一个 IOCPClient,这里先把压缩模式切过去即可;子连接在重连后
// 由新的 Manager 按配置重建。先断开再切模式,避免旧连接上还有包用新算法发出。
if (m_ClientObject) {
m_ClientObject->Disconnect();
m_ClientObject->SetWireCompression(mode == "zlib");
}
break;
}
case COMMAND_DOWN_EXEC: { case COMMAND_DOWN_EXEC: {
std::thread(DownExecute, std::string((char*)szBuffer + 1), this).detach(); std::thread(DownExecute, std::string((char*)szBuffer + 1), this).detach();
break; break;
-4
View File
@@ -729,11 +729,7 @@ DWORD WINAPI CScreenManager::WorkThreadProc(LPVOID lParam)
This->WaitForDialogOpen(); This->WaitForDialogOpen();
clock_t last = clock(); clock_t last = clock();
#if USING_ZLIB
const int fps = 8;// 帧率 const int fps = 8;// 帧率
#else
const int fps = 8;// 帧率
#endif
const int sleep = 1000 / fps;// 间隔时间(ms) const int sleep = 1000 / fps;// 间隔时间(ms)
int c1 = 0; // 连续耗时长的次数 int c1 = 0; // 连续耗时长的次数
int c2 = 0; // 连续耗时短的次数 int c2 = 0; // 连续耗时短的次数
+3 -7
View File
@@ -6,16 +6,12 @@
#if !defined(AFX_STDAFX_H__46CA6496_AAD6_4658_B6E9_D7AEB26CDCD5__INCLUDED_) #if !defined(AFX_STDAFX_H__46CA6496_AAD6_4658_B6E9_D7AEB26CDCD5__INCLUDED_)
#define AFX_STDAFX_H__46CA6496_AAD6_4658_B6E9_D7AEB26CDCD5__INCLUDED_ #define AFX_STDAFX_H__46CA6496_AAD6_4658_B6E9_D7AEB26CDCD5__INCLUDED_
// 是否使用ZLIB // 客户端线缆压缩:Windows 客户端同时编译 zlib 与 zstd,运行期由 settings\compress
#define USING_ZLIB 0 // 选择(默认 zstd;配置为 zlib 时使用 zlib)。服务端可通过 COMMAND_SET_COMPRESS
// 写入该配置并触发重连,见 client/IOCPClient.cpp 与 KernelManager 的处理分支。
#if !USING_ZLIB
#define USING_ZSTD 1 #define USING_ZSTD 1
#define USING_CTX 1 #define USING_CTX 1
#endif
// 是否使用 Opus 音频压缩 (需要 opus 库) // 是否使用 Opus 音频压缩 (需要 opus 库)
// 设为 1 启用 Opus 压缩,设为 0 使用 PCM 无压缩 // 设为 1 启用 Opus 压缩,设为 0 使用 PCM 无压缩
#define USING_OPUS 1 #define USING_OPUS 1
-4
View File
@@ -55,11 +55,7 @@ DWORD CVideoManager::WorkThread(LPVOID lParam)
// 等控制端对话框打开 // 等控制端对话框打开
This->WaitForDialogOpen(); This->WaitForDialogOpen();
#if USING_ZLIB
const int fps = 8;// 帧率 const int fps = 8;// 帧率
#else
const int fps = 8;// 帧率
#endif
const int sleep = 1000 / fps;// 间隔时间(ms) const int sleep = 1000 / fps;// 间隔时间(ms)
timeBeginPeriod(1); timeBeginPeriod(1);
+10
View File
@@ -152,6 +152,7 @@ inline int isValid_10s()
#define CLIENT_CAP_TERMINAL 0x8000 // 主连接处理 COMMAND_SHELL(PTY 终端子连接:exec_command / terminal_*;Linux 一直支持但不声明,新版 Android 与 macOS 声明) #define CLIENT_CAP_TERMINAL 0x8000 // 主连接处理 COMMAND_SHELL(PTY 终端子连接:exec_command / terminal_*;Linux 一直支持但不声明,新版 Android 与 macOS 声明)
#define CLIENT_CAP_PRIVACY_OVERLAY 0x10000 // 屏幕子连接处理 COMMAND_SCREEN_BLOCK_INPUT / COMMAND_SCREEN_BLANK(Android 用无障碍全屏 overlay 实现;Windows 一直支持锁定键鼠但不声明这个位) #define CLIENT_CAP_PRIVACY_OVERLAY 0x10000 // 屏幕子连接处理 COMMAND_SCREEN_BLOCK_INPUT / COMMAND_SCREEN_BLANK(Android 用无障碍全屏 overlay 实现;Windows 一直支持锁定键鼠但不声明这个位)
#define CLIENT_CAP_PROCESS 0x20000 // 主连接处理 COMMAND_SYSTEM(系统子连接:COMMAND_PSLIST / COMMAND_KILLPROCESS;Linux/macOS 声明,Windows 一直支持但不声明) #define CLIENT_CAP_PROCESS 0x20000 // 主连接处理 COMMAND_SYSTEM(系统子连接:COMMAND_PSLIST / COMMAND_KILLPROCESS;Linux/macOS 声明,Windows 一直支持但不声明)
#define CLIENT_CAP_COMPRESS_SWITCH 0x40000 // 支持服务端远程切换线缆压缩(COMMAND_SET_COMPRESS,仅 Windows)
// TOKEN_WEBCAM_DIB 帧头里的 fccHandler(第 3~6 字节):Android 客户端直接发 JPEG, // TOKEN_WEBCAM_DIB 帧头里的 fccHandler(第 3~6 字节):Android 客户端直接发 JPEG,
// 服务端识别这个 FOURCC 后用 turbojpeg 解码,不依赖系统安装 VFW 编解码器。 // 服务端识别这个 FOURCC 后用 turbojpeg 解码,不依赖系统安装 VFW 编解码器。
@@ -385,6 +386,13 @@ enum {
COMMAND_MCP_WINDOW_INFO = 179, COMMAND_MCP_WINDOW_INFO = 179,
TOKEN_MCP_WINDOW_INFO = 180, TOKEN_MCP_WINDOW_INFO = 180,
// 线缆压缩切换(服务端 → 客户端):载荷 [cmd:1]["zlib"|"zstd"]。
// 客户端写入自己配置的 settings\compress 后断开当前连接,原地切换本连接的压缩模式,
// 由 StartClient 重连循环用新模式建链;服务端按首包自动识别算法,无需额外握手。
// 不置 S_CLIENT_UPDATE,以免进程内测试客户端退出。只有声明 CLIENT_CAP_COMPRESS_SWITCH
// 的 Windows 客户端认识;老客户端走 default 静默丢弃。
COMMAND_SET_COMPRESS = 181,
TOKEN_DECRYPT = 199, TOKEN_DECRYPT = 199,
TOKEN_REGEDIT = 200, // 注册表 TOKEN_REGEDIT = 200, // 注册表
COMMAND_REG_FIND, // 注册表 管理标识 COMMAND_REG_FIND, // 注册表 管理标识
@@ -1335,6 +1343,8 @@ typedef struct LOGIN_INFOR {
caps |= CLIENT_CAP_C2C_PATHS; caps |= CLIENT_CAP_C2C_PATHS;
// 协议切换(COMMAND_SET_PROTO)只有 Windows 客户端实现了命令处理与入口持久化。 // 协议切换(COMMAND_SET_PROTO)只有 Windows 客户端实现了命令处理与入口持久化。
caps |= CLIENT_CAP_PROTO_SWITCH; caps |= CLIENT_CAP_PROTO_SWITCH;
// 线缆压缩切换(COMMAND_SET_COMPRESS):Windows 客户端同时携带 zlib/zstd。
caps |= CLIENT_CAP_COMPRESS_SWITCH;
// 多显示器远程控制:抓整个虚拟桌面,截图与注入共用同一坐标系。 // 多显示器远程控制:抓整个虚拟桌面,截图与注入共用同一坐标系。
caps |= CLIENT_CAP_VIRTUAL_DESKTOP; caps |= CLIENT_CAP_VIRTUAL_DESKTOP;
// 窗口信息 RPC(矩形/z 序/前后台)与窗口激活。 // 窗口信息 RPC(矩形/z 序/前后台)与窗口激活。
+10 -1
View File
@@ -499,6 +499,10 @@ typedef uLong FAR uLongf;
#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
# define Z_LFS64 # define Z_LFS64
#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__) && \
!defined(UNDER_CE) && (defined(__MINGW32__) || !defined(__GNUC__))
# define Z_LFS64 /* native Windows has 64-bit file offsets */
# define Z_WINLFS
#endif #endif
#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
@@ -516,7 +520,7 @@ typedef uLong FAR uLongf;
#endif #endif
#ifndef z_off_t #ifndef z_off_t
# define z_off_t long long # define z_off_t long
#endif #endif
#if !defined(_WIN32) && defined(Z_LARGE64) #if !defined(_WIN32) && defined(Z_LARGE64)
@@ -531,6 +535,11 @@ typedef uLong FAR uLongf;
# define z_off64_t z_off_t # define z_off64_t z_off_t
#endif #endif
#if defined(Z_WINLFS) && defined(Z_WANT64) && !defined(Z_SOLO)
# undef z_off_t
# define z_off_t z_off64_t
#endif
/* MVS linker does not support external names larger than 8 bytes */ /* MVS linker does not support external names larger than 8 bytes */
#if defined(__MVS__) #if defined(__MVS__)
#pragma map(deflateInit_,"DEIN") #pragma map(deflateInit_,"DEIN")
+43 -32
View File
@@ -1,5 +1,5 @@
/* zlib.h -- interface of the 'zlib' general purpose compression library /* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.3.2, February 17th, 2026 version 1.4, November 4th, 2026
Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler
@@ -41,11 +41,11 @@
extern "C" { extern "C" {
#endif #endif
#define ZLIB_VERSION "1.3.2" #define ZLIB_VERSION "1.4"
#define ZLIB_VERNUM 0x1320 #define ZLIB_VERNUM 0x1400
#define ZLIB_VER_MAJOR 1 #define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 3 #define ZLIB_VER_MINOR 4
#define ZLIB_VER_REVISION 2 #define ZLIB_VER_REVISION 0
#define ZLIB_VER_SUBREVISION 0 #define ZLIB_VER_SUBREVISION 0
/* /*
@@ -696,7 +696,9 @@ ZEXTERN int ZEXPORT deflateCopy(z_streamp dest,
deflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not deflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not
enough memory, Z_STREAM_ERROR if the source stream state was inconsistent enough memory, Z_STREAM_ERROR if the source stream state was inconsistent
(such as zalloc being Z_NULL). msg is left unchanged in both source and (such as zalloc being Z_NULL). msg is left unchanged in both source and
destination. destination. If deflateCopy fails and dest is not Z_NULL, then dest->state
is set to Z_NULL with dest otherwise unchanged, so that deflateEnd(dest) can
be called safely, though dest is not a usable stream.
*/ */
ZEXTERN int ZEXPORT deflateReset(z_streamp strm); ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
@@ -770,16 +772,16 @@ ZEXTERN z_size_t ZEXPORT deflateBound_z(z_streamp strm, z_size_t sourceLen);
/* /*
deflateBound() returns an upper bound on the compressed size after deflateBound() returns an upper bound on the compressed size after
deflation of sourceLen bytes. It must be called after deflateInit() or deflation of sourceLen bytes. It must be called after deflateInit() or
deflateInit2(), and after deflateSetHeader(), if used. This would be used deflateInit2(), and after deflateSetHeader() or deflateSetDictionary(), if
to allocate an output buffer for deflation in a single pass, and so would be used. This would be used to allocate an output buffer for deflation in a
called before deflate(). If that first deflate() call is provided the single pass, and so would be called before deflate(). If that first
sourceLen input bytes, an output buffer allocated to the size returned by deflate() call is provided the sourceLen input bytes, an output buffer
deflateBound(), and the flush value Z_FINISH, then deflate() is guaranteed allocated to the size returned by deflateBound(), and the flush value
to return Z_STREAM_END. Note that it is possible for the compressed size to Z_FINISH, then deflate() is guaranteed to return Z_STREAM_END. Note that it
be larger than the value returned by deflateBound() if flush options other is possible for the compressed size to be larger than the value returned by
than Z_FINISH or Z_NO_FLUSH are used. deflateBound() if flush options other than Z_FINISH or Z_NO_FLUSH are used.
delfateBound_z() is the same, but takes and returns a size_t length. Note deflateBound_z() is the same, but takes and returns a size_t length. Note
that a long is 32 bits on Windows. that a long is 32 bits on Windows.
*/ */
@@ -789,7 +791,7 @@ ZEXTERN int ZEXPORT deflatePending(z_streamp strm,
/* /*
deflatePending() returns the number of bytes and bits of output that have deflatePending() returns the number of bytes and bits of output that have
been generated, but not yet provided in the available output. The bytes not been generated, but not yet provided in the available output. The bytes not
provided would be due to the available output space having being consumed. provided would be due to the available output space having been consumed.
The number of bits of output not provided are between 0 and 7, where they The number of bits of output not provided are between 0 and 7, where they
await more bits to join them in order to fill out a full byte. If pending await more bits to join them in order to fill out a full byte. If pending
or bits are Z_NULL, then those values are not set. or bits are Z_NULL, then those values are not set.
@@ -869,8 +871,7 @@ ZEXTERN int ZEXPORT inflateInit2(z_streamp strm,
instead. windowBits must be greater than or equal to the windowBits value instead. windowBits must be greater than or equal to the windowBits value
provided to deflateInit2() while compressing, or it must be equal to 15 if provided to deflateInit2() while compressing, or it must be equal to 15 if
deflateInit2() was not used. If a compressed stream with a larger window deflateInit2() was not used. If a compressed stream with a larger window
size is given as input, inflate() will return with the error code size is given as input, inflate() may return with a Z_DATA_ERROR.
Z_DATA_ERROR instead of trying to allocate a larger window.
windowBits can also be zero to request that inflate use the window size in windowBits can also be zero to request that inflate use the window size in
the zlib header of the compressed stream. the zlib header of the compressed stream.
@@ -980,7 +981,9 @@ ZEXTERN int ZEXPORT inflateCopy(z_streamp dest,
inflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not inflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not
enough memory, Z_STREAM_ERROR if the source stream state was inconsistent enough memory, Z_STREAM_ERROR if the source stream state was inconsistent
(such as zalloc being Z_NULL). msg is left unchanged in both source and (such as zalloc being Z_NULL). msg is left unchanged in both source and
destination. destination. If inflateCopy fails and dest is not Z_NULL, then dest->state
is set to Z_NULL with dest otherwise unchanged, so that inflateEnd(dest) can
be called safely, though dest is not a usable stream.
*/ */
ZEXTERN int ZEXPORT inflateReset(z_streamp strm); ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
@@ -1095,9 +1098,10 @@ ZEXTERN int ZEXPORT inflateGetHeader(z_streamp strm,
a terminating zero. If any of extra, name, or comment are not present in a terminating zero. If any of extra, name, or comment are not present in
the header, then that field's pointer is set to Z_NULL. This allows the use the header, then that field's pointer is set to Z_NULL. This allows the use
of deflateSetHeader() with the returned structure to duplicate the header. of deflateSetHeader() with the returned structure to duplicate the header.
Note that if those fields initially pointed to allocated memory, then the Though take care that none of the fields were truncated before so using it,
application will need to save them elsewhere so that they can be eventually lest havoc ensue. Note that if those fields initially pointed to allocated
freed. memory, then the application will need to save them elsewhere so that they
can be eventually freed.
If inflateGetHeader is not used, then the header information is simply If inflateGetHeader is not used, then the header information is simply
discarded. The header is always checked for validity, including the header discarded. The header is always checked for validity, including the header
@@ -1394,8 +1398,8 @@ ZEXTERN gzFile ZEXPORT gzopen(const char *path, const char *mode);
errno can be checked to determine if the reason gzopen failed was that the errno can be checked to determine if the reason gzopen failed was that the
file could not be opened. Note that if 'N' is in mode for non-blocking, the file could not be opened. Note that if 'N' is in mode for non-blocking, the
open() itself can fail in order to not block. In that case gzopen() will open() itself can fail in order to not block. In that case gzopen() will
return NULL and errno will be EAGAIN or ENONBLOCK. The call to gzopen() can return NULL and errno will be EAGAIN or EWOULDBLOCK. The call to gzopen()
then be re-tried. If the application would like to block on opening the can then be re-tried. If the application would like to block on opening the
file, then it can use open() without O_NONBLOCK, and then gzdopen() with the file, then it can use open() without O_NONBLOCK, and then gzdopen() with the
resulting file descriptor and 'N' in the mode, which will set it to non- resulting file descriptor and 'N' in the mode, which will set it to non-
blocking. blocking.
@@ -1501,9 +1505,12 @@ ZEXTERN z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems,
gzfread() returns the number of full items read of size size, or zero if gzfread() returns the number of full items read of size size, or zero if
the end of the file was reached and a full item could not be read, or if the end of the file was reached and a full item could not be read, or if
there was an error. gzerror() must be consulted if zero is returned in there was an error. gzerror() must be consulted if zero is returned in
order to determine if there was an error. If the multiplication of size and order to determine if there was an error. If some data was read before an
nitems overflows, i.e. the product does not fit in a z_size_t, then nothing error, then that data is returned until exhausted, after which the next call
is read, zero is returned, and the error state is set to Z_STREAM_ERROR. will return zero and gzerror() will report the error. If the multiplication
of size and nitems overflows, i.e. the product does not fit in a z_size_t,
then nothing is read, zero is returned, and the error state is set to
Z_STREAM_ERROR.
In the event that the end of file is reached and only a partial item is In the event that the end of file is reached and only a partial item is
available at the end, i.e. the remaining uncompressed data length is not a available at the end, i.e. the remaining uncompressed data length is not a
@@ -1569,7 +1576,7 @@ ZEXTERN int ZEXPORTVA gzprintf();
these possibilities can be determined using zlibCompileFlags(). these possibilities can be determined using zlibCompileFlags().
If a Z_BUF_ERROR is returned, then nothing was written due to a stall on If a Z_BUF_ERROR is returned, then nothing was written due to a stall on
the non-blocking write destination. the non-blocking write destination. The operation can be retried.
*/ */
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s); ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s);
@@ -1677,7 +1684,9 @@ ZEXTERN z_off_t ZEXPORT gzseek(gzFile file,
gzseek returns the resulting offset location as measured in bytes from gzseek returns the resulting offset location as measured in bytes from
the beginning of the uncompressed stream, or -1 in case of error, in the beginning of the uncompressed stream, or -1 in case of error, in
particular if the file is opened for writing and the new starting position particular if the file is opened for writing and the new starting position
would be before the current position. would be before the current position, or if the resulting position would
not be representable in the offset type. If gzseek returns -1, the stream
position is unchanged.
*/ */
ZEXTERN int ZEXPORT gzrewind(gzFile file); ZEXTERN int ZEXPORT gzrewind(gzFile file);
@@ -1778,7 +1787,8 @@ ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum);
If errnum is not NULL, *errnum is set to zlib error number. If an error If errnum is not NULL, *errnum is set to zlib error number. If an error
occurred in the file system and not in the compression library, *errnum is occurred in the file system and not in the compression library, *errnum is
set to Z_ERRNO and the application may consult errno to get the exact error set to Z_ERRNO and the application may consult errno to get the exact error
code. code. The error is reported by gzerror() as soon as it is detected, which
may be before all of the data read prior to the error has been returned.
The application must not modify the returned string. Future calls to The application must not modify the returned string. Future calls to
this function may invalidate the previously returned string. If file is this function may invalidate the previously returned string. If file is
@@ -1972,7 +1982,8 @@ ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */
* change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if
* both are true, the application gets the *64 functions, and the regular * both are true, the application gets the *64 functions, and the regular
* functions are changed to 64 bits) -- in case these are set on systems * functions are changed to 64 bits) -- in case these are set on systems
* without large file support, _LFS64_LARGEFILE must also be true * without large file support, _LFS64_LARGEFILE must also be true, except on
* native Windows, where 64-bit offsets are always available
*/ */
#ifdef Z_LARGE64 #ifdef Z_LARGE64
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *); ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
@@ -2029,7 +2040,7 @@ ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */
#endif /* !Z_SOLO */ #endif /* !Z_SOLO */
/* undocumented functions */ /* undocumented functions (not part of the zlib API) */
ZEXTERN const char * ZEXPORT zError(int); ZEXTERN const char * ZEXPORT zError(int);
ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp); ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp);
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table(void); ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table(void);
Binary file not shown.
Binary file not shown.
Binary file not shown.
+81 -1
View File
@@ -826,6 +826,8 @@ CMy2015RemoteDlg::CMy2015RemoteDlg(CWnd* pParent): CDialogLangEx(CMy2015RemoteDl
m_bmOnline[74].LoadBitmap(IDB_BITMAP_DISCLAIMER); // 其他→免责声明 m_bmOnline[74].LoadBitmap(IDB_BITMAP_DISCLAIMER); // 其他→免责声明
m_bmOnline[75].LoadBitmap(IDB_BITMAP_COPYNAME); // 右键→复制名称 m_bmOnline[75].LoadBitmap(IDB_BITMAP_COPYNAME); // 右键→复制名称
m_bmOnline[76].LoadBitmap(IDB_BITMAP_RUN_TEST); // 高级→运行测试程序 m_bmOnline[76].LoadBitmap(IDB_BITMAP_RUN_TEST); // 高级→运行测试程序
m_bmCompressZstd.LoadBitmap(IDB_BITMAP_COMPRESS_ZSTD); // 线缆压缩:ZSTD
m_bmCompressZlib.LoadBitmap(IDB_BITMAP_COMPRESS_ZLIB); // 线缆压缩:ZLIB
for (int i = 0; i < PAYLOAD_MAXTYPE; i++) { for (int i = 0; i < PAYLOAD_MAXTYPE; i++) {
m_ServerDLL[i] = nullptr; m_ServerDLL[i] = nullptr;
m_ServerBin[i] = nullptr; m_ServerBin[i] = nullptr;
@@ -1177,6 +1179,8 @@ BEGIN_MESSAGE_MAP(CMy2015RemoteDlg, CDialogEx)
ON_COMMAND(ID_EXPERIMENT_DRAWING_BOARD, &CMy2015RemoteDlg::OnExperimentDrawingBoard) ON_COMMAND(ID_EXPERIMENT_DRAWING_BOARD, &CMy2015RemoteDlg::OnExperimentDrawingBoard)
ON_COMMAND(ID_EXPERIMENT_TLS_ENABLE, &CMy2015RemoteDlg::OnExperimentTlsEnable) ON_COMMAND(ID_EXPERIMENT_TLS_ENABLE, &CMy2015RemoteDlg::OnExperimentTlsEnable)
ON_COMMAND(ID_EXPERIMENT_TLS_DISABLE, &CMy2015RemoteDlg::OnExperimentTlsDisable) ON_COMMAND(ID_EXPERIMENT_TLS_DISABLE, &CMy2015RemoteDlg::OnExperimentTlsDisable)
ON_COMMAND(ID_EXPERIMENT_COMPRESS_ZSTD, &CMy2015RemoteDlg::OnExperimentCompressZstd)
ON_COMMAND(ID_EXPERIMENT_COMPRESS_ZLIB, &CMy2015RemoteDlg::OnExperimentCompressZlib)
ON_COMMAND(ID_PROTO_SWITCH_TCP, &CMy2015RemoteDlg::OnProtoSwitchTcp) ON_COMMAND(ID_PROTO_SWITCH_TCP, &CMy2015RemoteDlg::OnProtoSwitchTcp)
ON_COMMAND(ID_PROTO_SWITCH_WS, &CMy2015RemoteDlg::OnProtoSwitchWs) ON_COMMAND(ID_PROTO_SWITCH_WS, &CMy2015RemoteDlg::OnProtoSwitchWs)
ON_COMMAND(ID_PROTO_SWITCH_WSS, &CMy2015RemoteDlg::OnProtoSwitchWss) ON_COMMAND(ID_PROTO_SWITCH_WSS, &CMy2015RemoteDlg::OnProtoSwitchWss)
@@ -4979,6 +4983,42 @@ void CMy2015RemoteDlg::OnNMRClickOnline(NMHDR *pNMHDR, LRESULT *pResult)
pExperimentMenu->DeleteMenu(ID_EXPERIMENT_TLS_ENABLE, MF_BYCOMMAND); pExperimentMenu->DeleteMenu(ID_EXPERIMENT_TLS_ENABLE, MF_BYCOMMAND);
if (SHOULD_HIDE_CTX(HIDE_CTX_EXPERIMENT_TLS_DISABLE, CF_EXPERIMENT_TLS_DISABLE)) if (SHOULD_HIDE_CTX(HIDE_CTX_EXPERIMENT_TLS_DISABLE, CF_EXPERIMENT_TLS_DISABLE))
pExperimentMenu->DeleteMenu(ID_EXPERIMENT_TLS_DISABLE, MF_BYCOMMAND); pExperimentMenu->DeleteMenu(ID_EXPERIMENT_TLS_DISABLE, MF_BYCOMMAND);
// 线缆压缩切换:放在实验功能末尾。仅当该组仍有可见项时追加——被功能位整组
// 隐藏时既不泄露,也不影响下面「空组摘除」的逻辑。
if (!IsPopupEmptyOfItems(pExperimentMenu)) {
// 置灰规则:选中的主机全是 zstd → ZSTD 置灰;全是 zlib → ZLIB 置灰;
// 混选时两个都可用;有老客户端不支持切换时两个都置灰。
int sel = 0, zstdN = 0, zlibN = 0, unsupported = 0;
EnterCriticalSection(&m_cs);
POSITION modePos = m_CList_Online.GetFirstSelectedItemPosition();
while (modePos) {
context* c = GetContextByListIndex(m_CList_Online.GetNextSelectedItem(modePos));
if (!c || !c->IsLogin()) continue;
++sel;
if (!c->SupportsCompressSwitch()) { ++unsupported; continue; }
const int m = c->GetCompressMethod();
if (m == COMPRESS_ZSTD) ++zstdN;
else if (m == COMPRESS_ZLIB) ++zlibN;
}
LeaveCriticalSection(&m_cs);
UINT zstdFlags = MF_STRING, zlibFlags = MF_STRING;
if (sel > 0) {
if (unsupported > 0) {
zstdFlags |= MF_GRAYED;
zlibFlags |= MF_GRAYED;
} else {
if (zstdN == sel) zstdFlags |= MF_GRAYED; // 已经是 zstd
if (zlibN == sel) zlibFlags |= MF_GRAYED; // 已经是 zlib
}
}
pExperimentMenu->AppendMenu(MF_SEPARATOR);
pExperimentMenu->AppendMenuL(zstdFlags, ID_EXPERIMENT_COMPRESS_ZSTD, "线缆压缩:ZSTD");
pExperimentMenu->AppendMenuL(zlibFlags, ID_EXPERIMENT_COMPRESS_ZLIB, "线缆压缩:ZLIB");
pExperimentMenu->SetMenuItemBitmaps(ID_EXPERIMENT_COMPRESS_ZSTD, MF_BYCOMMAND,
&m_bmCompressZstd, &m_bmCompressZstd);
pExperimentMenu->SetMenuItemBitmaps(ID_EXPERIMENT_COMPRESS_ZLIB, MF_BYCOMMAND,
&m_bmCompressZlib, &m_bmCompressZlib);
}
for (UINT i = 0; i < SubMenu->GetMenuItemCount(); i++) { for (UINT i = 0; i < SubMenu->GetMenuItemCount(); i++) {
if (SubMenu->GetSubMenu(i) == pExperimentMenu) { if (SubMenu->GetSubMenu(i) == pExperimentMenu) {
protoInsertPos = (int)i + 1; protoInsertPos = (int)i + 1;
@@ -5326,6 +5366,37 @@ void CMy2015RemoteDlg::OnExperimentTlsDisable()
SendSelectedCommand(&bToken, sizeof(BYTE)); SendSelectedCommand(&bToken, sizeof(BYTE));
} }
// ---- 线缆压缩切换(在线列表右键 → 实验功能 → 线缆压缩:ZSTD / ZLIB)----
void CMy2015RemoteDlg::OnExperimentCompressZstd() { SwitchSelectedCompression("zstd"); }
void CMy2015RemoteDlg::OnExperimentCompressZlib() { SwitchSelectedCompression("zlib"); }
VOID CMy2015RemoteDlg::SwitchSelectedCompression(const char* mode)
{
// 老客户端不认识 COMMAND_SET_COMPRESS,收到只会丢弃;先按能力位过滤。
int selected = 0, unsupported = 0;
EnterCriticalSection(&m_cs);
for (context* ctx : ResolveCommandTargets()) {
if (!ctx->IsLogin()) continue;
++selected;
if (!ctx->SupportsCompressSwitch()) ++unsupported;
}
LeaveCriticalSection(&m_cs);
if (selected == 0) return;
if (unsupported > 0) {
MessageBoxL(_T("选中的主机里有客户端版本不支持线缆压缩切换(需要新版 Windows 客户端)"),
_T("提示"), MB_ICONWARNING);
return;
}
// 载荷 [cmd]["zstd"|"zlib"]。客户端写入 settings\compress 后断开当前连接,
// 原地切换压缩模式并由 StartClient 重连循环用新模式建链;服务端按每个连接的
// 首包自动识别算法,不影响其它主机。
std::string pkt(1, (char)COMMAND_SET_COMPRESS);
pkt += mode;
Mprintf("[compress-switch] send %s to %d host(s)\n", mode, selected);
SendSelectedCommand((PBYTE)&pkt[0], (ULONG)pkt.size());
}
// ---- 协议切换(在线列表右键 → 协议切换 → 直连 TCP / WS / WSS)---- // ---- 协议切换(在线列表右键 → 协议切换 → 直连 TCP / WS / WSS)----
// //
// 服务端只负责下发目标入口和协议:客户端把入口写进本机配置后断开重连,在线升级换 DLL // 服务端只负责下发目标入口和协议:客户端把入口写进本机配置后断开重连,在线升级换 DLL
@@ -10357,6 +10428,15 @@ void CMy2015RemoteDlg::OnListClick(NMHDR* pNMHDR, LRESULT* pResult)
{FLAG_WINOS, "WinOS"}, {FLAG_UNKNOWN, "Unknown"}, {FLAG_SHINE, "Shine"}, {FLAG_WINOS, "WinOS"}, {FLAG_UNKNOWN, "Unknown"}, {FLAG_SHINE, "Shine"},
{FLAG_FUCK, "FUCK"}, {FLAG_HELLO, "Hello"}, {FLAG_HELL, "HELL"}, {FLAG_FUCK, "FUCK"}, {FLAG_HELLO, "Hello"}, {FLAG_HELL, "HELL"},
}; };
// 压缩算法标注:服务端按连接自动识别(首个压缩包解压时定型),追加在加密协议后面。
// 不改 FormatL 的格式串,避免影响多语言翻译 key。
CString typeText = typMap[type].c_str();
switch (ctx->GetCompressMethod()) {
case COMPRESS_ZSTD: typeText += " [ZSTD]"; break;
case COMPRESS_ZLIB: typeText += " [ZLIB]"; break;
case COMPRESS_NONE: typeText += " [NONE]"; break;
default: break; // COMPRESS_UNKNOWN:不标注
}
CString processInfo; CString processInfo;
if (!res[RES_PID].IsEmpty() || !res[RES_FILESIZE].IsEmpty()) { if (!res[RES_PID].IsEmpty() || !res[RES_FILESIZE].IsEmpty()) {
processInfo.FormatL("\r\n进程 PID: %s %s", res[RES_PID].IsEmpty() ? "" : res[RES_PID], res[RES_FILESIZE].IsEmpty() ? "" : res[RES_FILESIZE]); processInfo.FormatL("\r\n进程 PID: %s %s", res[RES_PID].IsEmpty() ? "" : res[RES_PID], res[RES_FILESIZE].IsEmpty() ? "" : res[RES_FILESIZE]);
@@ -10377,7 +10457,7 @@ void CMy2015RemoteDlg::OnListClick(NMHDR* pNMHDR, LRESULT* pResult)
res[RES_PROGRAM_BITS].IsEmpty() ? "" : res[RES_PROGRAM_BITS] + _L(" 位 "), res[RES_FILE_PATH], res[RES_EXE_VERSION], processInfo, res[RES_PROGRAM_BITS].IsEmpty() ? "" : res[RES_PROGRAM_BITS] + _L(" 位 "), res[RES_FILE_PATH], res[RES_EXE_VERSION], processInfo,
res[RES_SYSTEM_BITS], res[RES_SYSTEM_CPU], res[RES_SYSTEM_MEM], res[RES_RESOLUTION], startTime, expired.c_str(), res[RES_SYSTEM_BITS], res[RES_SYSTEM_CPU], res[RES_SYSTEM_MEM], res[RES_RESOLUTION], startTime, expired.c_str(),
res[RES_USERNAME], res[RES_ISADMIN] == "1" ? _L("[管理员]") : res[RES_ISADMIN].IsEmpty() ? "" : _L("[非管理员]"), elapsed, res[RES_USERNAME], res[RES_ISADMIN] == "1" ? _L("[管理员]") : res[RES_ISADMIN].IsEmpty() ? "" : _L("[非管理员]"), elapsed,
ctx->GetProtocol().c_str(), ctx->GetServerPort(), typMap[type].c_str(), ctx->GetMasterID().c_str(), res[RES_CLIENT_ID]); ctx->GetProtocol().c_str(), ctx->GetServerPort(), typeText.GetString(), ctx->GetMasterID().c_str(), res[RES_CLIENT_ID]);
// 地理信息只在加载了本地 IP 库(QQWry/ip2region)时才查询并展示。 // 地理信息只在加载了本地 IP 库(QQWry/ip2region)时才查询并展示。
// 未装库时 m_IPConverter 是网络版 GetGeoLocation(同步外网 HTTP,可达数秒), // 未装库时 m_IPConverter 是网络版 GetGeoLocation(同步外网 HTTP,可达数秒),
// 且结果不会被显示——跳过可消除双击浮窗的弹出延时。 // 且结果不会被显示——跳过可消除双击浮窗的弹出延时。
+6
View File
@@ -506,6 +506,8 @@ public:
void RecordDllRequest(const std::string& ip); void RecordDllRequest(const std::string& ip);
CMenu m_MainMenu; CMenu m_MainMenu;
CBitmap m_bmOnline[77]; CBitmap m_bmOnline[77];
CBitmap m_bmCompressZstd; // 实验功能→线缆压缩:ZSTD
CBitmap m_bmCompressZlib; // 实验功能→线缆压缩:ZLIB
uint64_t m_superID; uint64_t m_superID;
std::map<HWND, CDialogBase *> m_RemoteWnds; std::map<HWND, CDialogBase *> m_RemoteWnds;
FileTransformCmd m_CmdList; FileTransformCmd m_CmdList;
@@ -597,6 +599,10 @@ public:
afx_msg void OnExperimentDrawingBoard(); afx_msg void OnExperimentDrawingBoard();
afx_msg void OnExperimentTlsEnable(); afx_msg void OnExperimentTlsEnable();
afx_msg void OnExperimentTlsDisable(); afx_msg void OnExperimentTlsDisable();
// 线缆压缩切换(实验功能子菜单):写客户端配置并触发立即重连(zstd / zlib)
afx_msg void OnExperimentCompressZstd();
afx_msg void OnExperimentCompressZlib();
VOID SwitchSelectedCompression(const char* mode);
// 协议切换(在线列表右键菜单,与「实验功能」平级):直连 TCP / WS / WSS // 协议切换(在线列表右键菜单,与「实验功能」平级):直连 TCP / WS / WSS
afx_msg void OnProtoSwitchTcp(); afx_msg void OnProtoSwitchTcp();
afx_msg void OnProtoSwitchWs(); afx_msg void OnProtoSwitchWs();
@@ -107,6 +107,7 @@
<AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>
<ModuleDefinitionFile>server_exports.def</ModuleDefinitionFile>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>zlib\zlib.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>zlib\zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -142,6 +143,7 @@
<AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>
<ModuleDefinitionFile>server_exports.def</ModuleDefinitionFile>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>zlib\zlib_x64.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>zlib\zlib_x64.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -177,6 +179,7 @@
<AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>
<ModuleDefinitionFile>server_exports.def</ModuleDefinitionFile>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
@@ -214,6 +217,7 @@
<AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/source-charset:utf-8 /execution-charset:.936 %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>
<ModuleDefinitionFile>server_exports.def</ModuleDefinitionFile>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
@@ -239,6 +243,7 @@
<None Include="..\..\macos\ghost" /> <None Include="..\..\macos\ghost" />
<None Include="..\..\Release\ghost.exe" /> <None Include="..\..\Release\ghost.exe" />
<None Include="..\..\Release\SCLoader.exe" /> <None Include="..\..\Release\SCLoader.exe" />
<None Include="server_exports.def" />
<None Include="..\..\Release\ServerDll.dll" /> <None Include="..\..\Release\ServerDll.dll" />
<None Include="..\..\Release\TestRun.exe" /> <None Include="..\..\Release\TestRun.exe" />
<None Include="..\..\Release\TinyRun.dll" /> <None Include="..\..\Release\TinyRun.dll" />
+3 -1
View File
@@ -1410,8 +1410,10 @@ BOOL WriteContextData(CONTEXT_OBJECT* ContextObject, PBYTE szBuffer, size_t ulOr
break; break;
} }
bool usingZstd = ContextObject->CompressMethod == COMPRESS_ZSTD; bool usingZstd = ContextObject->CompressMethod == COMPRESS_ZSTD;
// zlib 用 compressBound:1.001n+12 对小于约 1KB 的包会比 compressBound 少
// 1 字节,compress() 返回 Z_BUF_ERROR,小包(心跳 ACK、控制命令)被静默丢弃。
unsigned long ulCompressedLength = usingZstd ? unsigned long ulCompressedLength = usingZstd ?
ZSTD_compressBound(ulOriginalLength) : (unsigned long)((double)ulOriginalLength * 1.001 + 12); ZSTD_compressBound(ulOriginalLength) : compressBound(ulOriginalLength);
// 使用预分配缓冲区替代每次 new // 使用预分配缓冲区替代每次 new
LPBYTE CompressedBuffer = ContextObject->GetSendCompressBuffer(ulCompressedLength); LPBYTE CompressedBuffer = ContextObject->GetSendCompressBuffer(ulCompressedLength);
Buffer tmp(szBuffer, ulOriginalLength); Buffer tmp(szBuffer, ulOriginalLength);
+4
View File
@@ -741,6 +741,10 @@ public:
{ {
return Parser.m_nFlagType; return Parser.m_nFlagType;
} }
virtual int GetCompressMethod() const override
{
return CompressMethod;
}
// Write compressed buffer. // Write compressed buffer.
void WriteBuffer(LPBYTE data, ULONG dataLen, ULONG originLen, int cmd = -1) void WriteBuffer(LPBYTE data, ULONG dataLen, ULONG originLen, int cmd = -1)
{ {
+9
View File
@@ -41,6 +41,7 @@ public:
virtual std::string GetProtocol() const = 0; virtual std::string GetProtocol() const = 0;
virtual int GetServerPort() const = 0; virtual int GetServerPort() const = 0;
virtual FlagType GetFlagType() const = 0; virtual FlagType GetFlagType() const = 0;
virtual int GetCompressMethod() const = 0; // COMPRESS_ZSTD / COMPRESS_ZLIB / COMPRESS_NONE
virtual std::string GetGroupName() const = 0; virtual std::string GetGroupName() const = 0;
virtual uint64_t GetAliveTime()const = 0; virtual uint64_t GetAliveTime()const = 0;
virtual void SetLastHeartbeat(uint64_t time) = 0; virtual void SetLastHeartbeat(uint64_t time) = 0;
@@ -199,6 +200,14 @@ public:
return (strtoul(caps.GetString(), nullptr, 16) & CLIENT_CAP_PROTO_SWITCH) != 0; return (strtoul(caps.GetString(), nullptr, 16) & CLIENT_CAP_PROTO_SWITCH) != 0;
} }
// 检查客户端是否支持远程切换线缆压缩(COMMAND_SET_COMPRESS,zstd / zlib)。
// 只有声明 CLIENT_CAP_COMPRESS_SWITCH 的 Windows 客户端认识。
bool SupportsCompressSwitch() const {
CString caps = GetClientData(ONLINELIST_CAPABILITIES);
if (caps.IsEmpty()) return false;
return (strtoul(caps.GetString(), nullptr, 16) & CLIENT_CAP_COMPRESS_SWITCH) != 0;
}
// 检查客户端是否支持收到 COMMAND_UPDATE 下发的 APK 后拉起系统安装器。 // 检查客户端是否支持收到 COMMAND_UPDATE 下发的 APK 后拉起系统安装器。
// 只有新版 Android 客户端声明;老 APK 收到命令会走 default 静默丢弃, // 只有新版 Android 客户端声明;老 APK 收到命令会走 default 静默丢弃,
// 服务端据此提示「先手动装一次新版」。 // 服务端据此提示「先手动装一次新版」。
+4
View File
@@ -98,6 +98,7 @@ RTT=RTT
生成服务端=Server erstellen 生成服务端=Server erstellen
即时消息=Nachricht 即时消息=Nachricht
虚拟屏幕=Virtueller Bildschirm 虚拟屏幕=Virtueller Bildschirm
实验功能=Experimentelle Funktionen
隐私屏幕=Datenschutz-Bildschirm 隐私屏幕=Datenschutz-Bildschirm
代理服务=Proxy-Dienst 代理服务=Proxy-Dienst
注入设置=Injektionskonfiguration 注入设置=Injektionskonfiguration
@@ -2172,6 +2173,9 @@ TLS
证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=Zertifikat/privater Schluessel konnte nicht geladen werden; Verschluesselung ist inaktiv. Bitte Pfad und Format pruefen (PEM-Zertifikat, PKCS#8-Schluessel). 证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=Zertifikat/privater Schluessel konnte nicht geladen werden; Verschluesselung ist inaktiv. Bitte Pfad und Format pruefen (PEM-Zertifikat, PKCS#8-Schluessel).
TLS传输=TLS-Transport TLS传输=TLS-Transport
取消TLS=TLS deaktivieren 取消TLS=TLS deaktivieren
线缆压缩:ZSTD=Leitungskompression: ZSTD
线缆压缩:ZLIB=Leitungskompression: ZLIB
选中的主机里有客户端版本不支持线缆压缩切换(需要新版 Windows 客户端)=Ausgewaehlte Hosts unterstuetzen das Umschalten der Leitungskompression nicht (ein neuerer Windows-Client ist erforderlich)
确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=TLS-Transport fuer die ausgewaehlten Hosts aktivieren?\n(Clients wirken sofort und verbinden sich neu; laufende Sitzungen werden unterbrochen) 确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=TLS-Transport fuer die ausgewaehlten Hosts aktivieren?\n(Clients wirken sofort und verbinden sich neu; laufende Sitzungen werden unterbrochen)
确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=TLS-Transport fuer die ausgewaehlten Hosts deaktivieren?\n(Clients wirken sofort und verbinden sich neu; laufende Sitzungen werden unterbrochen) 确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=TLS-Transport fuer die ausgewaehlten Hosts deaktivieren?\n(Clients wirken sofort und verbinden sich neu; laufende Sitzungen werden unterbrochen)
服务端未启用 TLS 证书,无法切换客户端 TLS 传输=Server-TLS-Zertifikat ist nicht aktiviert; TLS-Transport der Clients kann nicht umgeschaltet werden 服务端未启用 TLS 证书,无法切换客户端 TLS 传输=Server-TLS-Zertifikat ist nicht aktiviert; TLS-Transport der Clients kann nicht umgeschaltet werden
+3
View File
@@ -2187,6 +2187,9 @@ TLS
证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=Failed to load certificate/private key; encryption is not active. Check the file path and format (PEM certificate, PKCS#8 private key). 证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=Failed to load certificate/private key; encryption is not active. Check the file path and format (PEM certificate, PKCS#8 private key).
TLS传输=TLS Transport TLS传输=TLS Transport
取消TLS=Disable TLS 取消TLS=Disable TLS
线缆压缩:ZSTD=Wire compression: ZSTD
线缆压缩:ZLIB=Wire compression: ZLIB
选中的主机里有客户端版本不支持线缆压缩切换(需要新版 Windows 客户端)=Some selected hosts do not support switching wire compression (a newer Windows client is required)
确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=Enable TLS transport for the selected host?\n(Clients apply it immediately and reconnect; any active remote session is interrupted) 确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=Enable TLS transport for the selected host?\n(Clients apply it immediately and reconnect; any active remote session is interrupted)
确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=Disable TLS transport for the selected host?\n(Clients apply it immediately and reconnect; any active remote session is interrupted) 确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=Disable TLS transport for the selected host?\n(Clients apply it immediately and reconnect; any active remote session is interrupted)
服务端未启用 TLS 证书,无法切换客户端 TLS 传输=Server TLS certificate is not enabled; cannot toggle client TLS transport 服务端未启用 TLS 证书,无法切换客户端 TLS 传输=Server TLS certificate is not enabled; cannot toggle client TLS transport
+3
View File
@@ -2180,6 +2180,9 @@ TLS
证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=憑證/私鑰載入失敗,加密功能未生效。請檢查檔案路徑與格式(憑證 PEM、私鑰 PKCS#8)。 证书/私钥加载失败,加密功能未生效。请检查文件路径与格式(证书 PEM、私钥 PKCS#8)。=憑證/私鑰載入失敗,加密功能未生效。請檢查檔案路徑與格式(憑證 PEM、私鑰 PKCS#8)。
TLS传输=TLS 傳輸 TLS传输=TLS 傳輸
取消TLS=停用 TLS 取消TLS=停用 TLS
线缆压缩:ZSTD=線纜壓縮:ZSTD
线缆压缩:ZLIB=線纜壓縮:ZLIB
选中的主机里有客户端版本不支持线缆压缩切换(需要新版 Windows 客户端)=選取的主機中有用戶端版本不支援線纜壓縮切換(需要新版 Windows 用戶端)
确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=確定對選取主機啟用 TLS 傳輸嗎?\n(用戶端立即生效並斷線重連,正在進行的遠端工作階段會中斷) 确定对选中主机启用 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=確定對選取主機啟用 TLS 傳輸嗎?\n(用戶端立即生效並斷線重連,正在進行的遠端工作階段會中斷)
确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=確定取消選取主機的 TLS 傳輸嗎?\n(用戶端立即生效並斷線重連,正在進行的遠端工作階段會中斷) 确定取消选中主机的 TLS 传输吗?\n(客户端立即生效并断线重连,正在进行的远程会话会中断)=確定取消選取主機的 TLS 傳輸嗎?\n(用戶端立即生效並斷線重連,正在進行的遠端工作階段會中斷)
服务端未启用 TLS 证书,无法切换客户端 TLS 传输=伺服器未啟用 TLS 憑證,無法切換用戶端 TLS 傳輸 服务端未启用 TLS 证书,无法切换客户端 TLS 传输=伺服器未啟用 TLS 憑證,無法切換用戶端 TLS 傳輸
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+6 -2
View File
@@ -299,6 +299,8 @@
#define IDB_BITMAP_DISCLAIMER 415 #define IDB_BITMAP_DISCLAIMER 415
#define IDB_BITMAP_COPYNAME 416 #define IDB_BITMAP_COPYNAME 416
#define IDB_BITMAP_RUN_TEST 417 #define IDB_BITMAP_RUN_TEST 417
#define IDB_BITMAP_COMPRESS_ZSTD 418
#define IDB_BITMAP_COMPRESS_ZLIB 419
#define IDC_MESSAGE 1000 #define IDC_MESSAGE 1000
#define IDC_ONLINE 1001 #define IDC_ONLINE 1001
#define IDC_STATIC_TIPS 1002 #define IDC_STATIC_TIPS 1002
@@ -1123,6 +1125,8 @@
#define ID_PROTO_SWITCH_WSS 33100 #define ID_PROTO_SWITCH_WSS 33100
// 高级菜单开关:把服务端 TLS 证书内嵌进下发给客户端的 ServerDll // 高级菜单开关:把服务端 TLS 证书内嵌进下发给客户端的 ServerDll
#define ID_TOOL_EMBED_TLS_ANCHOR 33101 #define ID_TOOL_EMBED_TLS_ANCHOR 33101
#define ID_EXPERIMENT_COMPRESS_ZSTD 33107
#define ID_EXPERIMENT_COMPRESS_ZLIB 33108
// 高级 → 运行测试程序:把内存里的 ServerDll 在主控进程内加载,本机上线一台测试主机 // 高级 → 运行测试程序:把内存里的 ServerDll 在主控进程内加载,本机上线一台测试主机
#define ID_TOOL_RUN_TEST 33106 #define ID_TOOL_RUN_TEST 33106
#define ID_EXIT_FULLSCREEN 40001 #define ID_EXIT_FULLSCREEN 40001
@@ -1131,8 +1135,8 @@
// //
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS #ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 418 #define _APS_NEXT_RESOURCE_VALUE 420
#define _APS_NEXT_COMMAND_VALUE 33107 #define _APS_NEXT_COMMAND_VALUE 33109
#define _APS_NEXT_CONTROL_VALUE 2621 #define _APS_NEXT_CONTROL_VALUE 2621
#define _APS_NEXT_SYMED_VALUE 105 #define _APS_NEXT_SYMED_VALUE 105
#endif #endif
+3
View File
@@ -0,0 +1,3 @@
; Host identity block for auxiliary tooling/diagnostics.
EXPORTS
HostIdentityBlock=?g_MasterID@@3PADA