Add a connection-management feature to YAMA: a toolbar button (after MCP) opens a dialog listing the managed host's TCP/UDP connections, with right-click force-disconnect for IPv4 TCP rows. Client: a new CConnectionsManager enumerates connections via iphlpapi (GetExtendedTcpTable/GetExtendedUdpTable, IPv4+IPv6) and answers the refresh and kill commands over a sub-connection. Server: a new CConnectionsDlg (DialogBase) shows the list with sortable columns and a right-click menu; the title-bar icon reuses the toolbar's connection icon (res/connections.ico). Fix byte order found during review: iphlpapi returns an IPv4 address as a network-order DWORD and the port's low 16 bits in network order, so storing them raw made the dialog show reversed IPv4 addresses and ports. The client now stores addresses as network-order bytes and ports as host order (ntohs), and reverses the conversion on disconnect. Co-Authored-By: deepseek-v4-pro
27 lines
1.1 KiB
C
27 lines
1.1 KiB
C
|
|
/// 开源协议合规开关
|
|
|
|
// 请设置为禁用,防止GPL开源传染性
|
|
#define DISABLE_X264_FOR_TEST 0
|
|
|
|
// 请设置为禁用,防止GPL开源传染性
|
|
#define DISABLE_FFMPEG_FOR_TEST 0
|
|
|
|
/// 客户端功能开关
|
|
|
|
#define ENABLE_SHELL TRUE // 终端管理
|
|
#define ENABLE_PROC_WND TRUE // 进程/窗口管理
|
|
#define ENABLE_SCREEN TRUE // 远程桌面
|
|
#define ENABLE_FILE_MNG TRUE // 文件管理
|
|
#define ENABLE_AUDIO_MNG TRUE // 语音管理
|
|
#define ENABLE_VIDEO_MNG TRUE // 视频管理
|
|
#define ENABLE_SERVICE_MNG TRUE // 服务管理
|
|
#define ENABLE_CONNECTION_MNG TRUE // 连接管理
|
|
#define ENABLE_REGISTRY TRUE // 注册表管理
|
|
#define ENABLE_KEYBOARD TRUE // 键盘记录
|
|
|
|
#define ENABLE_MESSAGE TRUE // 远程消息
|
|
#define ENABLE_PROXY TRUE // 代理映射
|
|
|
|
#define DISABLED_FEATURE "Feature Disabled"
|