代码拉取完成,页面将自动刷新
#include "GameDebug.h"
NTSTATUS GameDebug::Start_GanmeDebug()
{
g_GameDebug = this;
m_Hook.Hook_Init();
NTSTATUS Status = R3_PassTp_Hook();
PassTp_DebugPort_Set_0();
return Status;
}
VOID GameDebug::Un_GanmeDebug()
{
PsRemoveCreateThreadNotifyRoutine(ThreadCallback);
if (m_IsHook) {
m_Hook.UnHookSSDT(361, m_OldTpVal);
}
}
NTSTATUS GameDebug::R3_PassTp_Hook()
{
return PsSetCreateThreadNotifyRoutine(ThreadCallback);
}
VOID GameDebug::PassTp_DebugPort_Set_0()
{
HOOK_NtRemoveProcessDebug();
}
VOID GameDebug::HOOK_NtRemoveProcessDebug()
{
m_Hook.HookSSDT(361, (ULONGLONG)Fake_NtRemoveProcessDebug,&m_OldTpVal, (PVOID *)&NtRemoveProcessDebug);
m_IsHook = TRUE;
}
NTSTATUS GameDebug::Fake_NtRemoveProcessDebug(IN HANDLE ProcessHandle, IN HANDLE DebugHandle)
{
if (_stricmp((char *)PsGetProcessImageFileName(IoGetCurrentProcess()), "System") ==0 &&
_stricmp(FastFunction::GetProcessNamebyHandle(ProcessHandle), "dnf.exe") == 0)
{
return STATUS_SUCCESS;
}
return NtRemoveProcessDebug(ProcessHandle, DebugHandle);
}
VOID GameDebug::ThreadCallback(IN HANDLE ProcessId, IN HANDLE ThreadId, IN BOOLEAN Create)
{
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。