This commit is contained in:
2026-06-23 13:16:44 +08:00
parent 8dc46d22ff
commit ec66fbbf8a
-11
View File
@@ -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;
}