从任务pipe理器隐藏进程

我试图从taskmanager隐藏一个进程,但它不起作用。 我不明白为什么…

提前谢谢你的帮助… !

这是我注入hider_dll.dll的函数:

int Inject(char* dll) { int pid = getpid(); HANDLE hProc=OpenProcess(PROCESS_ALL_ACCESS,false,pid); if(hProc) { cout<<"OpenProcess success"<<endl; } else { cout<<"OpenProcess failed..."<<endl; return 0; } LPVOID Vmem=VirtualAllocEx(hProc,0,strlen(dll)+1,MEM_COMMIT|MEM_RESERVE,PAGE_READWRITE); DWORD wrt; WriteProcessMemory(hProc,Vmem,dll,strlen(dll),(SIZE_T*)&wrt); stringstream sstr; sstr << wrt; string str = sstr.str(); cout<<"Writed "+str+" bytes"<<endl; FARPROC LoadLib=GetProcAddress(LoadLibrary(L"kernel32.dll"),"LoadLibraryA"); HANDLE h=CreateRemoteThread(hProc,0,0,(LPTHREAD_START_ROUTINE)LoadLib,Vmem,0,0); if(h) { cout<<"CreateRemoteThread success"<<endl; } else { cout<<"CreateRemoteThread failed\r\nError:"<<GetLastError()<<endl; return 0; } WaitForSingleObject(h,INFINITE); DWORD exit; GetExitCodeThread(h,&exit); cout<<"Dll loaded to "<<exit<<endl; return 1; }