S
satanmonkey
Unregistered / Unconfirmed
GUEST, unregistred user!
VC代码如下
BOOL WINAPI DllMain(DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
// Don't attach to Windows Explorer
TCHAR pszLoader[MAX_PATH];
GetModuleFileName(NULL, pszLoader, MAX_PATH);
CString sLoader = pszLoader;
sLoader.MakeLower();
if (sLoader.Find(_T("explorer.exe")) >= 0)
return FALSE;
}
}
vc里只要让dllmain的返回值为false就可以了,delphi里要对dllproc怎么弄?
BOOL WINAPI DllMain(DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
// Don't attach to Windows Explorer
TCHAR pszLoader[MAX_PATH];
GetModuleFileName(NULL, pszLoader, MAX_PATH);
CString sLoader = pszLoader;
sLoader.MakeLower();
if (sLoader.Find(_T("explorer.exe")) >= 0)
return FALSE;
}
}
vc里只要让dllmain的返回值为false就可以了,delphi里要对dllproc怎么弄?