網上說是小紅傘,但我沒有安裝。另外把卡巴卸了,也不行。
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);
uj5u.com熱心網友回復:
最好是通知執行緒退出以后,再結束句柄轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/84226.html
標籤:基礎類
上一篇:求教例外“由句柄所呼叫的 NtClose 已使用 NtSetInformationObject 以防止關閉”
下一篇:錯了 怎么改啊
