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 michael@0: #include "updatelogging.h" michael@0: michael@0: BOOL PathAppendSafe(LPWSTR base, LPCWSTR extra); michael@0: BOOL VerifySameFiles(LPCWSTR file1Path, LPCWSTR file2Path, BOOL &sameContent); michael@0: michael@0: // 32KiB for comparing files at a time seems reasonable. michael@0: // The bigger the better for speed, but this will be used michael@0: // on the stack so I don't want it to be too big. michael@0: #define COMPARE_BLOCKSIZE 32768 michael@0: michael@0: // The following string resource value is used to uniquely identify the signed michael@0: // Mozilla application as an updater. Before the maintenance service will michael@0: // execute the updater it must have this updater identity string in its string michael@0: // table. No other signed Mozilla product will have this string table value. michael@0: #define UPDATER_IDENTITY_STRING \ michael@0: "moz-updater.exe-4cdccec4-5ee0-4a06-9817-4cd899a9db49" michael@0: #define IDS_UPDATER_IDENTITY 1006