Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 224 of file driver.c.
Referenced by RControlService().
{ DWORD dwError; DPRINT("ScmControlDriver() called\n"); switch (dwControl) { case SERVICE_CONTROL_STOP: if (lpService->Status.dwCurrentState != SERVICE_RUNNING) { dwError = ERROR_INVALID_SERVICE_CONTROL; goto done; } dwError = ScmUnloadDriver(lpService); if (dwError == ERROR_SUCCESS) { lpService->Status.dwControlsAccepted = 0; lpService->Status.dwCurrentState = SERVICE_STOPPED; } break; case SERVICE_CONTROL_INTERROGATE: dwError = ScmGetDriverStatus(lpService, lpServiceStatus); break; default: dwError = ERROR_INVALID_SERVICE_CONTROL; } done:; DPRINT("ScmControlDriver() done (Erorr: %lu)\n", dwError); return dwError; }