| 4 | namespace Process |
| 5 | { |
| 6 | class CProcess |
| 7 | { |
| 8 | public: |
| 9 | CProcess(); |
| 10 | CProcess(DWORD dwProcessId, DWORD dwDesiredAccess = PROCESS_ALL_ACCESS); |
| 11 | CProcess(std::string ProcessName); |
| 12 | CProcess(HANDLE hProcess); |
| 13 | ~CProcess(); |
| 14 | |
| 15 | |
| 16 | bool Wait(uint32_t Interval); |
| 17 | |
| 18 | bool SetPrivilege(LPCTSTR lpszPrivilege, BOOL bEnablePrivilege); |
| 19 | |
| 20 | bool Suspend(); |
| 21 | bool Resume(); |
| 22 | bool Kill(); |
| 23 | bool Open(DWORD dwDesiredAccess = PROCESS_ALL_ACCESS); |
| 24 | bool Close(); |
| 25 | |
| 26 | MODULEENTRY32 GetModule(char* Module); |
| 27 | |
| 28 | HANDLE GetHandle(); |
| 29 | DWORD GetPid(); |
| 30 | DWORD GetParentPid(); |
| 31 | BOOL InjectDll(LPCSTR lpPath); |
| 32 | int Is64(PBOOL Is64); |
| 33 | bool IsValidProcess(); |
| 34 | |
| 35 | protected: |
| 36 | std::map<std::string, std::uint32_t> ProcessList; |
| 37 | private: |
| 38 | std::string ProcessName; |
| 39 | HANDLE hProcess; |
| 40 | std::map<std::string, std::uint32_t> GetProcessList(); |
| 41 | }; |
| 42 | } |
nothing calls this directly
no outgoing calls
no test coverage detected