测试32位程序注入64位dll到64 位的进程中失败。出现下面错误提示:
应用程序发生异常 未知软件异常(0xc0000409)错误
必须4使用64位程序注入64位dll到64位的进程才能成功。
if (!DebuggerWasPresent)
0021DC04 83 3D A8 99 28 00 00 cmp dword ptr [DebuggerWasPresent (2899A8h)],00021DC0B 75 08 jne __report_gsfailure+0F2h (21DC15h)
{
_CRT_DEBUGGER_HOOK(_CRT_DEBUGGER_GSFAILURE);
0021DC0D 6A 01 push 1
0021DC0F E8 BF C0 00 00 call _crt_debugger_hook (229CD3h)
0021DC14 59 pop ecx
}
__declspec(noinline)
void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
{
/* assign 0 to _debugger_hook_dummy so that the function is not folded in retail */
(_Reserved);
_debugger_hook_dummy = 0;
00229CD3 83 25 C8 A2 28 00 00 and dword ptr [__debugger_hook_dummy (28A2C8h)],0 /崩溃地
}
00229CDA C3 ret