int _tmain (int arg c, _TCHAR * argv [])
{
The OpenProcess (PROCESS_ALL_ACCESS, FALSE, GetProcessIDByName (" HAss. Exe "));
//load the DLL and the HOOK API
HMODULE hDll=: : LoadLibraryA (" InlineHookApi_Test. DLL ");
If (NULL==hDll)
{
Printf (" Load Library Error. \ n ");
}
Printf (" Load Library OK. \ n ");
The OpenProcess (PROCESS_ALL_ACCESS, FALSE, GetProcessIDByName (" HAss. Exe "));//test to jump to the MyOpenProcess I wrote
system("pause");
return 0;
}
CodePudding user response:
Everybody, help solve, thank youCodePudding user response:
Task manager end process there are many kinds of methods, in addition to the terminateprocess, can also be sendmessage WM_CLOSE. Or enable the CMD taskkill. You can have a try,