Lines Matching defs:ss
168 SERVICE_STATUS ss;
175 memset(&ss, 0, sizeof(SERVICE_STATUS));
176 ss.dwServiceType |= SERVICE_WIN32_OWN_PROCESS;
177 ss.dwCurrentState = dwState;
178 ss.dwControlsAccepted = SERVICE_ACCEPT_STOP |
180 ss.dwCheckPoint = 0;
181 ss.dwServiceSpecificExitCode = 0;
182 ss.dwWin32ExitCode = NO_ERROR;
183 ss.dwWaitHint = dwState == SERVICE_STOP_PENDING ? 10000 : 1000;
185 if (!SetServiceStatus(hServiceStatus, &ss)) {
186 ss.dwCurrentState = SERVICE_STOPPED;
187 SetServiceStatus(hServiceStatus, &ss);