|
LibreOffice Module onlineupdate (master) 1
|
#include "readstrings.h"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... | |
| #define SVC_DISPLAY_NAME L"Mozilla Maintenance Service" |
Definition at line 7 of file serviceinstall.hxx.
| enum SvcInstallAction |
| Enumerator | |
|---|---|
| UpgradeSvc | |
| InstallSvc | |
| ForceInstallSvc | |
Definition at line 9 of file serviceinstall.hxx.
| BOOL SetUserAccessServiceDACL | ( | SC_HANDLE | hService | ) |
Sets the access control list for user access for the specified service.
| hService | The service to set the access control list on |
Definition at line 702 of file serviceinstall.cxx.
References SetUserAccessServiceDACL().
Referenced by SetUserAccessServiceDACL(), and SvcInstall().
| DWORD SetUserAccessServiceDACL | ( | SC_HANDLE | hService, |
| PACL & | pNewAcl, | ||
| PSECURITY_DESCRIPTOR | psd | ||
| ) |
Sets the access control list for user access for the specified service.
| hService | The service to set the access control list on |
| pNewAcl | The out param ACL which should be freed by caller |
| psd | out param security descriptor, should be freed by caller |
Definition at line 727 of file serviceinstall.cxx.
| BOOL StopService | ( | ) |
Stops the Maintenance service.
Definition at line 593 of file serviceinstall.cxx.
References FALSE, LOG, LOG_WARN, SVC_NAME, WaitForProcessExit(), and WaitForServiceStop().
Referenced by 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.
| action | The action to perform. |
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().