| 60 | } |
| 61 | |
| 62 | bool 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 | |
| 73 | bool RemoveProcess(ULONG pid) { |
| 74 | for (int i = 0; i < MaxPids; i++) |
nothing calls this directly
no outgoing calls
no test coverage detected