LibreOffice Module onlineupdate (master) 1
updatehelper.h
Go to the documentation of this file.
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5BOOL LaunchWinPostProcess(const WCHAR *installationDir,
6 const WCHAR *updateInfoDir,
7 bool forceSync,
8 HANDLE userToken);
9BOOL StartServiceUpdate(LPCWSTR installDir);
11DWORD LaunchServiceSoftwareUpdateCommand(int argc, LPCWSTR *argv);
12BOOL WriteStatusFailure(LPCWSTR updateDirPath, int errorCode);
13BOOL WriteStatusPending(LPCWSTR updateDirPath);
14DWORD WaitForServiceStop(LPCWSTR serviceName, DWORD maxWaitSeconds);
15DWORD WaitForProcessExit(LPCWSTR filename, DWORD maxSeconds);
17BOOL IsLocalFile(LPCWSTR file, BOOL &isLocal);
18DWORD StartServiceCommand(int argc, LPCWSTR* argv);
19BOOL IsUnpromptedElevation(BOOL &isUnpromptedElevation);
20
21#define SVC_NAME L"LibreOfficeMaintenance"
22
23#define BASE_SERVICE_REG_KEY \
24 L"SOFTWARE\\LibreOffice\\MaintenanceService"
25
26// The test only fallback key, as its name implies, is only present on machines
27// that will use automated tests. Since automated tests always run from a
28// different directory for each test, the presence of this key bypasses the
29// "This is a valid installation directory" check. This key also stores
30// the allowed name and issuer for cert checks so that the cert check
31// code can still be run unchanged.
32#define TEST_ONLY_FALLBACK_KEY_PATH \
33 BASE_SERVICE_REG_KEY L"\\3932ecacee736d366d6436db0f55bce4"
34
const wchar_t *typedef BOOL
BOOL LaunchWinPostProcess(const WCHAR *installationDir, const WCHAR *updateInfoDir, bool forceSync, HANDLE userToken)
BOOL DoesFallbackKeyExist()
BOOL StartServiceUpdate(LPCWSTR installDir)
BOOL IsUnpromptedElevation(BOOL &isUnpromptedElevation)
DWORD WaitForProcessExit(LPCWSTR filename, DWORD maxSeconds)
DWORD StartServiceCommand(int argc, LPCWSTR *argv)
BOOL IsLocalFile(LPCWSTR file, BOOL &isLocal)
DWORD WaitForServiceStop(LPCWSTR serviceName, DWORD maxWaitSeconds)
BOOL WriteStatusFailure(LPCWSTR updateDirPath, int errorCode)
BOOL WriteStatusPending(LPCWSTR updateDirPath)
BOOL GetUpdateDirectoryPath(LPWSTR path)
DWORD LaunchServiceSoftwareUpdateCommand(int argc, LPCWSTR *argv)