michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "readstrings.h" michael@0: michael@0: #define SVC_DISPLAY_NAME L"Mozilla Maintenance Service" michael@0: michael@0: enum SvcInstallAction { UpgradeSvc, InstallSvc, ForceInstallSvc }; michael@0: BOOL SvcInstall(SvcInstallAction action); michael@0: BOOL SvcUninstall(); michael@0: BOOL StopService(); michael@0: BOOL SetUserAccessServiceDACL(SC_HANDLE hService); michael@0: DWORD SetUserAccessServiceDACL(SC_HANDLE hService, PACL &pNewAcl, michael@0: PSECURITY_DESCRIPTOR psd); michael@0: michael@0: struct MaintenanceServiceStringTable michael@0: { michael@0: char serviceDescription[MAX_TEXT_LEN]; michael@0: }; michael@0: