MCPcopy Create free account
hub / github.com/dobin/RedEdr / StartThePplService

Function StartThePplService

RedEdr/pplmanager.cpp:108–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107
108BOOL StartThePplService() {
109 if (!DoesServiceExist(SERVICE_NAME)) {
110 LOG_A(LOG_WARNING, "ETW-TI: service %ls not found", SERVICE_NAME);
111 LOG_A(LOG_WARNING, "ETW-TI: Attempting to load elam driver");
112 InstallElamCertPpl();
113 LOG_A(LOG_WARNING, "ETW-TI: Attempting to install ppl service");
114 InstallPplService();
115 LOG_A(LOG_WARNING, "ETW-TI: Attempting to start ppl service");
116 StartPplService();
117 Sleep(500); // wait for it to start
118 }
119 if (!IsServiceRunning(SERVICE_NAME)) {
120 LOG_A(LOG_WARNING, "ETW-TI: Attempting to start ppl service");
121 InstallElamCertPpl(); // have to do this upon reboot
122 StartPplService();
123 Sleep(1000); // wait for it to start
124 }
125 return TRUE;
126}
127
128
129BOOL ShutdownPplService() {

Callers 1

ManagerStartFunction · 0.85

Calls 6

DoesServiceExistFunction · 0.85
InstallElamCertPplFunction · 0.85
InstallPplServiceFunction · 0.85
StartPplServiceFunction · 0.85
IsServiceRunningFunction · 0.85
LOG_AFunction · 0.70

Tested by

no test coverage detected