From ec66fbbf8a055ad3994c8aaefaa4ae81b823c7e7 Mon Sep 17 00:00:00 2001 From: maowenrui <3505719167@qq.com> Date: Tue, 23 Jun 2026 13:16:44 +0800 Subject: [PATCH] fix func --- Anti-Cheat_Driver/anit_screen_grap.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Anti-Cheat_Driver/anit_screen_grap.cpp b/Anti-Cheat_Driver/anit_screen_grap.cpp index 0964776..1e1f17b 100644 --- a/Anti-Cheat_Driver/anit_screen_grap.cpp +++ b/Anti-Cheat_Driver/anit_screen_grap.cpp @@ -7,16 +7,6 @@ namespace anit_screen_grap { auto GreProtectSpriteContent(HWND hWnd, UINT Flags) -> BOOL { - UNREFERENCED_PARAMETER(hWnd); - UNREFERENCED_PARAMETER(Flags); - auto eprocess = kernel_function::FindProcess("IHuan.exe"); - - ObDereferenceObject(eprocess); - - KAPC_STATE apc{ 0 }; - - KeStackAttachProcess(eprocess, &apc); - typedef BOOL(__fastcall* fn_GreProtectSpriteContent)(LPVOID, HWND, INT, UINT); static fn_GreProtectSpriteContent _GreProtectSpriteContent = nullptr; if (!_GreProtectSpriteContent) { @@ -41,7 +31,6 @@ namespace anit_screen_grap auto suc = _GreProtectSpriteContent(NULL, hWnd, TRUE, Flags); - KeUnstackDetachProcess(&apc); return suc; }