fix(desktop-wake): only OBJID_CLIENT DuiLib path to stop UIA core crash (1.2.5)
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 25s
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 25s
Skip UiaRoot MSAA spoofing, sync GETOBJECT, and SPI screen-reader for n2-wake. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -152,8 +152,6 @@ namespace JiangchangDesktopWake
|
||||
try
|
||||
{
|
||||
Activate(hwnd);
|
||||
EnableScreenReaderFlag(); // 进程外 SPI:部分 App 见“读屏器”会挂树
|
||||
|
||||
// n1/auto:进程外 UIA
|
||||
// n2:仅注入探针
|
||||
// n2-wake:注入 + 远程 WakeProvider(C2,无钩子)
|
||||
@@ -163,6 +161,9 @@ namespace JiangchangDesktopWake
|
||||
bool doWakeProvider = (mode == "n2-wake") && profile == "wecom";
|
||||
// n2-wake:不在 exe 内做 UIA 深扫(易跟着目标进程一起挂);暖树由 Python probe 判定
|
||||
bool doN1 = (mode == "n1" || mode == "auto" || mode == "n2-hook");
|
||||
// n2-wake 不再 SPI_SETSCREENREADER:会触发 UiaRoot 查询,测试机曾崩 uiautomationcore
|
||||
if (!doWakeProvider)
|
||||
EnableScreenReaderFlag();
|
||||
|
||||
if (doN2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user