fix func
This commit is contained in:
@@ -7,16 +7,6 @@ namespace anit_screen_grap
|
|||||||
{
|
{
|
||||||
auto GreProtectSpriteContent(HWND hWnd, UINT Flags) -> BOOL
|
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);
|
typedef BOOL(__fastcall* fn_GreProtectSpriteContent)(LPVOID, HWND, INT, UINT);
|
||||||
static fn_GreProtectSpriteContent _GreProtectSpriteContent = nullptr;
|
static fn_GreProtectSpriteContent _GreProtectSpriteContent = nullptr;
|
||||||
if (!_GreProtectSpriteContent) {
|
if (!_GreProtectSpriteContent) {
|
||||||
@@ -41,7 +31,6 @@ namespace anit_screen_grap
|
|||||||
|
|
||||||
auto suc = _GreProtectSpriteContent(NULL, hWnd, TRUE, Flags);
|
auto suc = _GreProtectSpriteContent(NULL, hWnd, TRUE, Flags);
|
||||||
|
|
||||||
KeUnstackDetachProcess(&apc);
|
|
||||||
return suc;
|
return suc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user