Basic Help need
I'm new at Visual C++
So i want to find the idiot CShell:
But i got this error:
Anyone would help me, how to fix it ?
So i want to find the idiot CShell:
Code:
DWORD FindCShell( )
{
if( EnumProcessModules(hProcess, hMods, sizeof(hMods), &cbNeeded))
{
for (int i = 0; i < (cbNeeded / sizeof(HMODULE)); i++ )
{
TCHAR szModName[MAX_PATH];
// Get the full path to the module's file.
if ( GetModuleFileNameEx( hProcess, hMods[i], szModName, sizeof(szModName) / sizeof(TCHAR)) != NULL)
{
std::string ModuleName;
TcharToString(ModuleName,szModName);
if ( EndWith(ModuleName, "CShell.dll")) return (DWORD)hMods[i];
}
}
}
return 0;
}
Code:
error LNK2001: unresolved external symbol _EnumProcessModules@16 error LNK2001: unresolved external symbol _GetModuleFileNameExW@16


