| BOOL CompareFile( |
| |
LPCTSTR lpszObjectLabel, |
|
| |
LPCTSTR lpszLocalFile |
|
| ); |
The CompareFile method compares the contents of a
stored object with a local file.
Parameters
- lpszObjectLabel
- A null-terminated string which specifies the label
of the object to be compared.
- lpszLocalFile
- A null-terminated string that specifies the name of
the local file. If a path is not specified, the file will be created
in the current working directory.
Return Value
If the method succeeds, the return value is a non-zero and the
contents of the file matches the stored object. If the method fails,
the return value is zero. To get extended error information,
call the GetLastError method.
Remarks
The CompareFile method performs a binary comparison of the contents of a local file with a
stored object on the server. The contents of the file must be
identical to the contents of the stored object or the method
will fail.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cswebv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|