LibreOffice Module onlineupdate (master) 1
Macros | Functions
servicebase.hxx File Reference
#include <windows.h>
#include "updatelogging.h"
Include dependency graph for servicebase.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMPARE_BLOCKSIZE   32768
 
#define UPDATER_IDENTITY_STRING   "libreoffice-updater.exe-7bab28a0-0599-4f37-9efe-f7f8b71f05e3"
 
#define IDS_UPDATER_IDENTITY   1006
 

Functions

BOOL PathAppendSafe (LPWSTR base, LPCWSTR extra)
 
BOOL VerifySameFiles (LPCWSTR file1Path, LPCWSTR file2Path, BOOL &sameContent)
 Verifies if 2 files are byte for byte equivalent. More...
 

Macro Definition Documentation

◆ COMPARE_BLOCKSIZE

#define COMPARE_BLOCKSIZE   32768

Definition at line 14 of file servicebase.hxx.

◆ IDS_UPDATER_IDENTITY

#define IDS_UPDATER_IDENTITY   1006

Definition at line 21 of file servicebase.hxx.

◆ UPDATER_IDENTITY_STRING

#define UPDATER_IDENTITY_STRING   "libreoffice-updater.exe-7bab28a0-0599-4f37-9efe-f7f8b71f05e3"

Definition at line 20 of file servicebase.hxx.

Function Documentation

◆ PathAppendSafe()

BOOL PathAppendSafe ( LPWSTR  base,
LPCWSTR  extra 
)

◆ VerifySameFiles()

BOOL VerifySameFiles ( LPCWSTR  file1Path,
LPCWSTR  file2Path,
BOOL sameContent 
)

Verifies if 2 files are byte for byte equivalent.

Parameters
file1PathThe first file to verify.
file2PathThe second file to verify.
sameContentOut parameter, TRUE if the files are equal
Returns
TRUE If there was no error checking the files.

Definition at line 19 of file servicebase.cxx.

References COMPARE_BLOCKSIZE, FALSE, AutoHandle::get(), i, and TRUE.

Referenced by ProcessSoftwareUpdateCommand().