求教异常“由句柄所调用的 NtClose 已使用 NtSetInformationObject 以防止关闭”

gu1013 2017-10-19 09:54:11
网上说是小红伞,但我没有安装。另外把卡巴卸了,也不行。

HANDLE currentThreadHandle = GetCurrentThread();
HANDLE currentProcessHandle = GetCurrentProcess();
HANDLE realThreadHandle(0);

if( 0 == DuplicateHandle(currentProcessHandle, currentThreadHandle, currentProcessHandle, &realThreadHandle, 0, FALSE, DUPLICATE_SAME_ACCESS) )
{
// If the function fails, the return value is zero
}

// ...

// 挂起线程
SuspendThread(realThreadHandle);

// 该行抛出异常“由句柄所调用的 NtClose 已使用 NtSetInformationObject 以防止关闭。”
CloseHandle(realThreadHandle);
...全文
287 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧