音乐控制/解密

This commit is contained in:
LFeng committed 2026-09-28 00:21:12 +08:00
1 parent 9e6d73e191
commit ff1d5cd517
41 files changed
+10827 -4

No files matched your search

+21 -1
View File
@@ -41,7 +41,7 @@ chrono = "0.4"
reqwest = { version = "0.12", features = ["json", "stream", "multipart", "blocking"] }
futures-util = "0.3"
tokio = { version = "1", features = ["io-util", "time", "rt-multi-thread", "macros", "sync", "fs", "net"] }
axum = "0.7"
axum = { version = "0.7", features = ["ws"] }
url = "2"
zip = "2"
dirs = "5"
@@ -154,6 +154,12 @@ windows-sys = { version = "0.52", features = [
# 注意:0.52 起 ReadFile 定义在 Storage_FileSystem 但被 Win32_System_IO 特性门控,
# 两个特性必须同时开启,否则导入会解析失败。
"Win32_System_IO",
# 音乐模块「解密」:QQ音乐新版 musicex 的 ekey 不落盘,只能联网取;而
# authst 仅存在于 QQMusic.exe 运行期内存里 —— 需要进程枚举(ToolHelp:
# CreateToolhelp32Snapshot / Process32FirstW)与跨进程读内存
# (Diagnostics::Debug::ReadProcessMemory + System::Memory::VirtualQueryEx)。
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Diagnostics_Debug",
] }
# Explorer ShellWindows COM:用于枚举已打开的资源管理器窗口并取当前路径
# (快速面板「用资源管理器打开」联动)。依赖 Win32_System_Com 特性。
@@ -180,6 +186,20 @@ windows = { version = "0.52", features = [
# 专辑与封面不送达,且会话挂在浏览器进程 AUMID 上只显示「未知应用」。
"Media",
"Win32_System_WinRT",
# 音乐模块·手机遥控:GSMTC 全局会话管理器(Windows.Media.Control),
# 枚举/监视/控制系统全部 SMTC 会话(MUSIC_REMOTE_PLAN §3.1)
"Media_Control",
# 手机遥控·UDP beacon:GetAdaptersAddresses 枚举各网卡 IPv4/广播地址
# (多网卡/VPN 场景下定向广播,MUSIC_REMOTE_PLAN §3.3)。
# GetAdaptersAddresses 另受 Ndis + WinSock 两个 feature 门控(windows 0.52 源码 cfg)
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
# 手机遥控·P1 系统音量:MMDevice + IAudioEndpointVolume(Endpoints 有独立 feature 门控;
# IMMDevice::Activate 另需 Com_StructuredStorage)
"Win32_Media_Audio",
"Win32_Media_Audio_Endpoints",
"Win32_System_Com_StructuredStorage",
"Security_Cryptography",
# 划词取词的智能路径:UIA 直读焦点元素选区(IUIAutomation / ITextProvider)
"Win32_UI_Accessibility",