MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / LookupProcess

Function LookupProcess

Anti-Rootkit/ProcManager.cpp:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

EnumProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected