Tag: dll injection

SetWindowsHookEx函数返回NULL

我正在处理DLL注入,但得到错误 无法挂钩进程:87参数不正确。 目标进程以及dll都是64位。 注入代码是: BOOL HookInjection(TCHAR target[], TCHAR *dll_name) { // https://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx // SetWindowsHookEx can be used to inject a DLL into another process. A 32 – bit DLL cannot be injected into a 64 – bit process, // and a 64 – bit DLL cannot be injected into a 32 – bit process.If an […]