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

Function ServiceHandler

WinArkSvc/WinArkSvc.cpp:238–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238DWORD WINAPI ServiceHandler(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext) {
239 switch (dwControl)
240 {
241 case SERVICE_CONTROL_STOP:
242 SetStatus(SERVICE_STOP_PENDING);
243 ::SetEvent(g_hStopEvent);
244 break;
245 }
246 return 0;
247}
248
249bool IsRunningElevated() {
250 HANDLE hToken;

Callers

nothing calls this directly

Calls 1

SetStatusFunction · 0.85

Tested by

no test coverage detected