MCPcopy Create free account
hub / github.com/TwoSevenOneT/WSASS / PPLProcessCreator

Class PPLProcessCreator

PPLHelp.h:9–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8#pragma comment(lib, "advapi32.lib")
9class PPLProcessCreator
10{
11private:
12 HANDLE m_hProcess;
13 HANDLE m_hThread;
14
15public:
16 PPLProcessCreator() : m_hProcess(nullptr), m_hThread(nullptr) {}
17 ~PPLProcessCreator()
18 {
19 if (m_hProcess) CloseHandle(m_hProcess);
20 if (m_hThread) CloseHandle(m_hThread);
21 }
22
23 DWORD GetPPLProtectionLevel(DWORD processId);
24 std::wstring GetPPLProtectionLevelName(DWORD protectionLevel);
25 bool CreatePPLProcess(DWORD protectionLevel, std::wstring& commandLine);
26
27 HANDLE GetProcessHandle();
28 HANDLE GetThreadHandle();
29};
30

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected