PHP Code:
bool CNeuzApp::isRunning(char* name)
{
DWORD process_id_array[1024];
DWORD bytes_returned;
int num_processes;
HANDLE hProcess;
char image_name[256];
int i;
EnumProcesses(process_id_array, 256*sizeof(DWORD), &bytes_returned);
num_processes = (bytes_returned/sizeof(DWORD));
for (i = 0; i < num_processes; i++) {
hProcess=OpenProcess(PROCESS_ALL_ACCESS,TRUE,process_id_array[i]);
if(GetModuleBaseName(hProcess,0,image_name,256)){
if(!stricmp(image_name,name)){
CloseHandle(hProcess);
return TRUE;
}
}
CloseHandle(hProcess);
}
return FALSE;
}
PHP Code:
#ifdef __CHEAT_ENGINE_BLOCK
CWinThread* m_threadSecurity;
static UINT _SecurityThreadFunc( LPVOID param );
bool isRunning(char* name);
CWinThread* m_threadSecurity2;
static UINT _SecurityThread2Func( LPVOID param );
void StartSecurityThread();
#endif
PHP Code:
Neuz.obj : error LNK2019: unresolved external symbol _GetModuleBaseNameA@16 referenced in function "public: bool __thiscall CNeuzApp::isRunning(char *)" (?isRunning@CNeuzApp@@QAE_NPAD@Z)
Neuz.obj : error LNK2019: unresolved external symbol _EnumProcesses@12 referenced in function "public: bool __thiscall CNeuzApp::isRunning(char *)" (?isRunning@CNeuzApp@@QAE_NPAD@Z)
.\..\..\Output\Neuz\Debug/Neuz.exe : fatal error LNK1120: 2 unresolved externals
The error is only when i debug the neuz






