MCPcopy Create free account
hub / github.com/AlSch092/UltimateAntiCheat / IsThreadRunning

Method IsThreadRunning

Process/Thread.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42}
43bool Thread::IsThreadRunning(HANDLE threadHandle)
44{
45 if (threadHandle == NULL)
46 return false;
47
48 DWORD exitCode;
49
50 if (GetExitCodeThread(threadHandle, &exitCode) != 0)
51 {
52 return (exitCode == STILL_ACTIVE);
53 }
54
55 Logger::logf(Err, " GetExitCodeThread failed @ IsThreadRunning: %d\n", GetLastError());
56 return false;
57}
58
59/*
60 IsThreadSuspended - checks if a thread is currently suspended by suspending it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected