LibreOffice Module onlineupdate (master) 1
Functions
maintenanceservice.hxx File Reference
This graph shows which files directly or indirectly include this file:

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...
 

Function Documentation

◆ ReportSvcStatus()

void ReportSvcStatus ( DWORD  currentState,
DWORD  exitCode,
DWORD  waitHint 
)

Sets the current service status and reports it to the SCM.

Parameters
currentStateThe current state (see SERVICE_STATUS)
exitCodeThe system error code
waitHintEstimated time for pending operation in milliseconds

Definition at line 340 of file maintenanceservice.cxx.

References gSvcStatus, and gSvcStatusHandle.

Referenced by StopServiceAndWaitForCommandThread(), SvcCtrlHandler(), and SvcMain().

◆ SvcCtrlHandler()

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().

◆ SvcInit()

void SvcInit ( DWORD  dwArgc,
LPWSTR *  lpszArgv 
)

◆ SvcMain()

void WINAPI SvcMain ( DWORD  dwArgc,
LPWSTR *  lpszArgv 
)