LibreOffice Module onlineupdate (master) 1
|
Go to the source code of this file.
Functions | |
void WINAPI | SvcMain (DWORD dwArgc, LPWSTR *lpszArgv) |
Main entry point when running as a service. More... | |
void | SvcInit (DWORD dwArgc, LPWSTR *lpszArgv) |
void WINAPI | SvcCtrlHandler (DWORD dwCtrl) |
Called by SCM whenever a control code is sent to the service using the ControlService function. More... | |
void | ReportSvcStatus (DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint) |
Sets the current service status and reports it to the SCM. More... | |
void ReportSvcStatus | ( | DWORD | currentState, |
DWORD | exitCode, | ||
DWORD | waitHint | ||
) |
Sets the current service status and reports it to the SCM.
currentState | The current state (see SERVICE_STATUS) |
exitCode | The system error code |
waitHint | Estimated time for pending operation in milliseconds |
Definition at line 340 of file maintenanceservice.cxx.
References gSvcStatus, and gSvcStatusHandle.
Referenced by StopServiceAndWaitForCommandThread(), SvcCtrlHandler(), and SvcMain().
void WINAPI SvcCtrlHandler | ( | DWORD | dwCtrl | ) |
Called by SCM whenever a control code is sent to the service using the ControlService function.
Definition at line 399 of file maintenanceservice.cxx.
References gServiceControlStopping, NO_ERROR, ReportSvcStatus(), and StopServiceAndWaitForCommandThread().
Referenced by SvcMain().
void SvcInit | ( | DWORD | dwArgc, |
LPWSTR * | lpszArgv | ||
) |
void WINAPI SvcMain | ( | DWORD | dwArgc, |
LPWSTR * | lpszArgv | ||
) |
Main entry point when running as a service.
Definition at line 269 of file maintenanceservice.cxx.
References BackupOldLogs(), UACHelper::DisablePrivileges(), ExecuteServiceCommand(), FALSE, GetLogDirectoryPath(), gServiceControlStopping, gSvcStatus, gSvcStatusHandle, gWorkDoneEvent, LOG_WARN, LogFinish, LogInit, LOGS_TO_KEEP, MAX_PATH, NO_ERROR, ReportSvcStatus(), StartTerminationThread(), SVC_NAME, SvcCtrlHandler(), and TRUE.
Referenced by wmain().