1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/maintenanceservice/servicebase.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include <windows.h> 1.9 +#include "updatelogging.h" 1.10 + 1.11 +BOOL PathAppendSafe(LPWSTR base, LPCWSTR extra); 1.12 +BOOL VerifySameFiles(LPCWSTR file1Path, LPCWSTR file2Path, BOOL &sameContent); 1.13 + 1.14 +// 32KiB for comparing files at a time seems reasonable. 1.15 +// The bigger the better for speed, but this will be used 1.16 +// on the stack so I don't want it to be too big. 1.17 +#define COMPARE_BLOCKSIZE 32768 1.18 + 1.19 +// The following string resource value is used to uniquely identify the signed 1.20 +// Mozilla application as an updater. Before the maintenance service will 1.21 +// execute the updater it must have this updater identity string in its string 1.22 +// table. No other signed Mozilla product will have this string table value. 1.23 +#define UPDATER_IDENTITY_STRING \ 1.24 + "moz-updater.exe-4cdccec4-5ee0-4a06-9817-4cd899a9db49" 1.25 +#define IDS_UPDATER_IDENTITY 1006