| 1 | #include"ProcManager.h" |
| 2 | |
| 3 | PEPROCESS LookupProcess(HANDLE Pid) { |
| 4 | PEPROCESS eprocess = nullptr; |
| 5 | if (NT_SUCCESS(PsLookupProcessByProcessId(Pid, &eprocess))) |
| 6 | return eprocess; |
| 7 | else |
| 8 | return NULL; |
| 9 | } |
| 10 | |
| 11 | PETHREAD LookupThread(HANDLE Tid) { |
| 12 | PETHREAD ethread; |