| 236 | } |
| 237 | |
| 238 | DWORD 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 | |
| 249 | bool IsRunningElevated() { |
| 250 | HANDLE hToken; |
nothing calls this directly
no test coverage detected