IContactManager::Load method (icontact.h)

Loads an IContact object with the data from the contact referenced by the computer-local contact ID.

Syntax

HRESULT Load(
  [in]  LPCWSTR  pszContactID,
  [out] IContact **ppContact
);

Parameters

[in] pszContactID

Type: LPCWSTR

Specifies the contact ID to load.

[out] ppContact

Type: IContact**

Specifies the destination IContact object.

Return value

Type: HRESULT

Returns one of the following values:

Return code Description
S_OK
Contact was found and loaded.
ERROR_NO_MATCH
Could not find this contact ID.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header icontact.h (include Contact.h)
DLL Wab32.dll (Version 6.0 or later)

See also

GetContactID

IContactManager