| BOOL CompareData( |
| |
LPCTSTR lpszObjectLabel, |
|
| |
LPCVOID lpvBuffer, |
|
| |
DWORD dwLength |
|
| ); |
The CompareData method compares the contents of a
stored object with the data provided by the caller.
Parameters
- lpszObjectLabel
- A null-terminated string which specifies the label
of the object to be compared.
- lpvBuffer
- A buffer that contains the data to be compared
against the storage object.
- dwLength
- An unsigned integer which specifies the length of the data
buffer to be compared.
Return Value
If the method succeeds, the return value is a non-zero and the
data matches the contents of the stored object. If the method fails,
the return value is zero. To get extended error information,
call the GetLastError method.
Remarks
The CompareData method performs a
binary comparison of the data in the specified buffer with the
contents of the storage object on the server. The dwLength
parameter must match the size of the stored object exactly, or
this method will fail. Partial comparisons are not supported by this
method.
If you wish to compare the contents of a text object, it
is recommended that you use CompareText.
This method ensures that Unicode text is compared correctly.
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
|