SAWVSDK::isFileSameAsOnServer

Description

Compares the local copy of file to the one on the server.

Syntax

int isFileSameAsOnServer(
        String
strFileLocal,
        String strFileOnServer,
        int iEnumEOL,
        BaseDataObject bdobIsFileSame,
        BaseDataObject bdobCanceled,
        BaseDataObject bdostrError,
        int iVersionNoOnServer
);

Parameters

strFileLocal
[in] Specifies the name of local file.

strFileOnServer
[in] Specifies the file name on the server.

iEnumEOL
[in] Specifies which end-of-line terminator is to be used.

bdobIsSameFile
[out] Returns whether the two files are identical.

bdobCanceled
[out] If the method fails, returns whether the operation is canceled.

bdostrError
[out] Returns the description of the result. If the operation succeeds, returns 'Completed'. If the operation fails, returns the error information.

iVersionNoOnServer
[in] Specifies which version of the file on the server is to be compared.

Return Value

If the method succeeds, returns the value of ESAWV_SUCCESS. If the method fails, returns other error codes.

See Also