///@humanpd@outlook.com
/// <summary>
/// 返回TREU ,表示是一个调试服务,否则不是.如果是调试服务,尽管有3环的调试端口存在,也需要先发送给内核调试器处理
/// </summary>
/// <param name="exceptionRecode"></param>
/// <returns></returns>
BOOLEAN __fastcall KdIsThisAKdTrap(PEXCEPTION_RECORD exceptionRecode)
{
if (exceptionRecode->ExceptionCode == STATUS_BREAKPOINT || exceptionRecode->ExceptionCode == STATUS_WX86_BREAKPOINT)
{
if (exceptionRecode->NumberParameters <= 0 && exceptionRecode->ExceptionInformation[0] == 0)
{
return TRUE;
}
}
return FALSE;
}
KdIsThisAKdTrap函数
最新推荐文章于 2025-05-31 19:41:15 发布