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

Function AddProcess

KernelLibrary/ProcessProtect.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool AddProcess(ULONG pid) {
63 for (int i = 0; i < MaxPids; i++)
64 if (g_ProtectData.Pids[i] == 0) {
65 // empty slot
66 g_ProtectData.Pids[i] = pid;
67 g_ProtectData.PidsCount++;
68 return true;
69 }
70 return false;
71}
72
73bool RemoveProcess(ULONG pid) {
74 for (int i = 0; i < MaxPids; i++)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected