-
-
[求助]Windows Server 2008 dll hook不成功
-
发表于:
2014-12-24 12:07
3156
-
[求助]Windows Server 2008 dll hook不成功
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
wsprintf(szBuffer,"case ul_%x",ul_reason_for_call);
OutputDebugString(szBuffer);
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
PatchProcess(GetCurrentProcess());
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
DllMain()在xp下可以正常执行,放到Windows Server 2008 R2 Enterprise 64位下没有执行,没有debug 字符输出,PatchProcess(GetCurrentProcess());也没有执行到。
是怎么回事,怎么解决啊?谢谢指点
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!