bool CNeuzApp::isRunning(char* name) error part

06/13/2018 12:21 Ecrypter#1
Hi Epvpers im asking about the secury of Roika flyff i try to leech the all feature of security and this part i got an error
PHP Code:
bool CNeuzApp::isRunning(charname)
{
    
DWORD process_id_array[1024];
    
DWORD bytes_returned;
    
int num_processes;
    
HANDLE hProcess;
    
char image_name[256];
    
int i;
    
EnumProcesses(process_id_array256*sizeof(DWORD), &bytes_returned);
    
num_processes = (bytes_returned/sizeof(DWORD));
    for (
0num_processesi++) {
        
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            _SecurityThreadFuncLPVOID param ); 
    
bool                       isRunning(charname); 
    
CWinThread*                m_threadSecurity2
    static    
UINT            _SecurityThread2FuncLPVOID param ); 
    
void                    StartSecurityThread(); 
#endif 
nogameguard and Debug Neuz error
PHP Code:
Neuz.obj error LNK2019unresolved external symbol _GetModuleBaseNameA@16 referenced in function "public: bool __thiscall CNeuzApp::isRunning(char *)" (?isRunning@CNeuzApp@@QAE_NPAD@Z)
Neuz.obj error LNK2019unresolved 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 LNK11202 unresolved externals 
thanks and advance can answer my question

The error is only when i debug the neuz
06/13/2018 19:08 Tweeney#2
You need to include the psapi.lib mr. rene

also you need to add this on neuz.cpp

#include <psapi.h>
06/13/2018 19:10 alfredico#3
Add Psapi.lib to the linker part. Linker > Input > Additional dependencies.