Home > Software engineering >  Validate exception "used by the call to handle NtClose has NtSetInformationObject closed to pre
Validate exception "used by the call to handle NtClose has NtSetInformationObject closed to pre

Time:09-27

Say avira antivir online, but I don't have to install, and unloaded the kappa, also not line,

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

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

//...

//hung thread
SuspendThread (realThreadHandle);

//it throws an exception "used by the call to handle NtClose has NtSetInformationObject to prevent shut down,"
The CloseHandle (realThreadHandle);
  • Related