na, con una forma simple me basta
Código:
bool WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved )
{
char tmpName[255];
GetModuleFileName(hinstDLL, tmpName, 255);
strlwr(tmpName);
if (!strstr(tmpName, "program.dll"))
{
ExitProcess(0);
}
con eso sale esto: fatal error C1004: unexpected end of file found