Ok, so after a lot of google-ing, and searching and testing, i have comeup with nothing. I want to make a check if my thread is suspended, can that be achived? Here is my current thread example:
void Thread_EXAMPLE()
{
again:
SystemProcessesScan();
Sleep(2000);
goto again;
}
void Thread_EXAMPLE_Start(){
write_log("Thread EXAMPLE started!");
CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)Thread_EXAMPLE,NULL,0,0);
}
I have tried a lot of methods found here, but non worked for me. I must note that this thread is inside a dll, and that dll is attached to a executable.