LPropCompareProp

The LPropCompareProp function compares two property values to determine if they are equal.

Note This function may not be supported in future versions of MAPI.

Quick Info

Header file: MAPIUTIL.H
Implemented by: MAPI
Called by: Client applications and service providers

LONG LPropCompareProp(
  LPSPropValue lpSPropValueA,   
  LPSPropValue lpSPropValueB  
);
 

Parameters

lpSPropValueA
[in] Pointer to an SPropValue structure defining the first property value to be compared.
lpSPropValueB
[in] Pointer to an SPropValue structure defining the second property value to be compared.

Remarks

Use the LPropCompareProp function only if the types of the two properties to be compared are the same.

Before calling LPropCompareProp, a client application or service provider must first retrieve the properties for comparison with a call to the IMAPIProp::GetProps method. When a client or provider calls LPropCompareProp, the function first examines the property tags to ensure that the comparison of property values is valid. The function then compares the property values, returning an appropriate value.

If the property values are unequal, LPropCompareProp determines which one is the greater. The properties that LPropCompareProp compares do not have to belong to the same object.

LPropCompareProp returns one of the following values for most property types:

For property types that have no intrinsic ordering, such as Boolean or error types, the LPropCompareProp function returns an undefined value if the two property values are not equal. This undefined value is nonzero and consistent across calls.

See Also

Properties Functions