sometimes when im testing my hacks the game window freezes so im trying to make a program that terminates the process
how would i fix these errorsCode:#include <tlhelp32.h> int main() { HANDLE SnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL,NULL); if (SnapShot != NULL) { PROCESSENTRY32 PE; PE.dwSize = sizeof(PROCESSENTRY32); HRESULT r = Process32First (SnapShot,&PE); while(r != NULL) { if(strstr((char*)&PE.szExeFile,"globalops.exe") ) { HANDLE GO = OpenProcess (PROCESS_TERMINATE,0,PE.th32ProcessID); TerminateProcess (GO,0); } r = Process32Next (SnapShot,&PE); } } }
Code:Compiling... main.cpp c:\program files\microsoft visual studio\vc98\include\tlhelp32.h(26) : error C2146: syntax error : missing ';' before identifier 'WINAPI' c:\program files\microsoft visual studio\vc98\include\tlhelp32.h(26) : error C2501: 'HANDLE' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\tlhelp32.h(26) : fatal error C1004: unexpected end of file found Error executing cl.exe.



LinkBack URL
About LinkBacks


