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; }