IAPI::StringCompare

property StringCompare.

Compares case-insensitively a C-String to a BSTR

 

HRESULT StringCompare(
  long lpString,
  BSTR BStrToCompare,
  long length,
  long *pVal
);

Parameters

lpString

[in] .   Pointer to a C-String

BStrToCompare

[in] .   BSTR sting

length

[in,defaultvalue(-1)]

. Custom length or on whole BSTR length

pVal

[out, retval]

. The returned value 0 if both strings are the same, < 0 if C-String is less than BSTR

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI