mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 21:24:12 +08:00
Update host.cpp
This commit is contained in:
parent
15849bd1a1
commit
eb50325e76
@ -291,15 +291,14 @@ namespace Host
|
|||||||
}
|
}
|
||||||
void InjectProcess(DWORD processId,const std::wstring locationX)
|
void InjectProcess(DWORD processId,const std::wstring locationX)
|
||||||
{
|
{
|
||||||
CreatePipe(processId);
|
|
||||||
std::thread([processId,locationX]
|
|
||||||
{
|
|
||||||
if(CheckProcess(processId)==false)return;
|
|
||||||
|
|
||||||
|
auto check=CreatePipeAndCheck(processId);
|
||||||
|
if(check==false)return;
|
||||||
|
|
||||||
|
std::thread([=]
|
||||||
|
{
|
||||||
if(InjectDll(processId,locationX))return ;
|
if(InjectDll(processId,locationX))return ;
|
||||||
AddConsoleOutput(INJECT_FAILED);
|
AddConsoleOutput(INJECT_FAILED);
|
||||||
|
|
||||||
|
|
||||||
}).detach();
|
}).detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user