IContactManager::GetContactCollection Method
Returns an IContactCollection object that contains all known contacts.
Syntax
HRESULT GetContactCollection( IContactCollection **ppContactCollection );
Parameters
- ppContactCollection
[out] On success, contains an enumeration of the contact collection.
Return Value
Returns one of the following values:
S_OK Success. ppContactCollection contains the collection.
Remarks
The enumerator of the new collection is set before the first contact. You must first call IContactCollection::Next before querying the collection with IContactCollection::GetCurrent.