LibreOffice Module onlineupdate (master) 1
Classes | Macros | Enumerations | Functions
serviceinstall.hxx File Reference
#include "readstrings.h"
Include dependency graph for serviceinstall.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MaintenanceServiceStringTable
 

Macros

#define SVC_DISPLAY_NAME   L"Mozilla Maintenance Service"
 

Enumerations

enum  SvcInstallAction {
  UpgradeSvc ,
  InstallSvc ,
  ForceInstallSvc
}
 

Functions

BOOL SvcInstall (SvcInstallAction action)
 Installs or upgrades the SVC_NAME service. More...
 
BOOL SvcUninstall ()
 Uninstalls the Maintenance service. More...
 
BOOL StopService ()
 Stops the Maintenance service. More...
 
BOOL SetUserAccessServiceDACL (SC_HANDLE hService)
 Sets the access control list for user access for the specified service. More...
 
DWORD SetUserAccessServiceDACL (SC_HANDLE hService, PACL &pNewAcl, PSECURITY_DESCRIPTOR psd)
 Sets the access control list for user access for the specified service. More...
 

Macro Definition Documentation

◆ SVC_DISPLAY_NAME

#define SVC_DISPLAY_NAME   L"Mozilla Maintenance Service"

Definition at line 7 of file serviceinstall.hxx.

Enumeration Type Documentation

◆ SvcInstallAction

Enumerator
UpgradeSvc 
InstallSvc 
ForceInstallSvc 

Definition at line 9 of file serviceinstall.hxx.

Function Documentation

◆ SetUserAccessServiceDACL() [1/2]

BOOL SetUserAccessServiceDACL ( SC_HANDLE  hService)

Sets the access control list for user access for the specified service.

Parameters
hServiceThe service to set the access control list on
Returns
TRUE if successful

Definition at line 702 of file serviceinstall.cxx.

References SetUserAccessServiceDACL().

Referenced by SetUserAccessServiceDACL(), and SvcInstall().

◆ SetUserAccessServiceDACL() [2/2]

DWORD SetUserAccessServiceDACL ( SC_HANDLE  hService,
PACL &  pNewAcl,
PSECURITY_DESCRIPTOR  psd 
)

Sets the access control list for user access for the specified service.

Parameters
hServiceThe service to set the access control list on
pNewAclThe out param ACL which should be freed by caller
psdout param security descriptor, should be freed by caller
Returns
ERROR_SUCCESS if successful

Definition at line 727 of file serviceinstall.cxx.

References FALSE, LOG, LOG_WARN, sid, size, and TRUE.

◆ StopService()

BOOL StopService ( )

Stops the Maintenance service.

Returns
TRUE if successful.

Definition at line 593 of file serviceinstall.cxx.

References FALSE, LOG, LOG_WARN, SVC_NAME, WaitForProcessExit(), and WaitForServiceStop().

Referenced by SvcInstall().

◆ SvcInstall()

BOOL SvcInstall ( SvcInstallAction  action)

Installs or upgrades the SVC_NAME service.

If an existing service is already installed, we replace it with the currently running process.

Parameters
actionThe action to perform.
Returns
TRUE if the service was installed/upgraded

Definition at line 290 of file serviceinstall.cxx.

References action, FALSE, FixServicePath(), ForceInstallSvc, GetVersionNumberFromPath(), LOG, LOG_WARN, MAX_PATH, result, SetUserAccessServiceDACL(), StopService(), SVC_DISPLAY_NAME, SVC_NAME, SvcInstall(), TRUE, UpdateServiceDescription(), and UpgradeSvc.

Referenced by SvcInstall(), and wmain().

◆ SvcUninstall()

BOOL SvcUninstall ( )

Uninstalls the Maintenance service.

Returns
TRUE if successful.

Definition at line 642 of file serviceinstall.cxx.

References FALSE, LOG_WARN, and SVC_NAME.

Referenced by wmain().