IVerifyContactSink::IsContactValid

This method checks whether the information stored for a contact is valid.

Syntax

HRESULT IsContactValid( CEOID ceoidContact, PROPID propidAddress, BSTR* pbstrExplanation);

Parameters

ceoidContact
Object identifier for the contact.
propidAddress
Property identifier that specifies the fields from the contact's address that you want to validate. It is one of the following values.
Value
Description
HHPR_OFFICE_ADDRESS_STREET Street address for the contact's workplace.
HHPR_HOME_ADDRESS_STREET Street address for the contact's home.

pbstrExplanation
Pointer to a Unicode string that receives an explanation of how the contact's information is invalid. The address book currently passes a NULL pointer for this parameter. If the application returns a pointer, the address book frees the memory for the BSTR.

Return Values

S_OK indicates that the information for the contact is valid. S_FALSE indicates that the information for the contact is not valid.

See Also

ABDIALOGINFO