Поделиться через


IOlkAccountManager::EnumerateAccounts

Gets an enumerator for the accounts of the specific category or type.

Краткие сведения

See IOlkAccountManager.

HRESULT IOlkAccountManager::EnumerateAccounts (  
    const CLSID *pclsidCategory, 
    const CLSID *pclsidType, 
    DWORD dwFlags, 
    IOlkEnum **ppEnum 
);

Параметры

pclsidCategory

[in] The class identifier of the category to enumerate. The value must be one of the following:

  • CLSID_OlkMail

  • CLSID_OlkAddressBook

  • CLSID_OlkStore

pclsidType

[in] The class identifier of the account type to enumerate. The value must be one of the following:

  • CLSID_OlkPOP3Account

  • CLSID_OlkIMAP4Account

  • CLSID_OlkMAPIAccount

  • CLSID_OlkHotmailAccount

  • CLSID_OlkLDAPAccount

Dwflags

[in] Flags to modify behavior. The only supported value is OLK_ACCOUNT_NO_FLAGS.

ppEnum

[out] An enumerator that supports the IOlkEnum interface.

Возвращаемые значения

HRESULT Description
S_OK
The call succeeded.
E_OLK_NOT_INITIALIZED
The account manager has not been initialized for use.

Замечания

Specifying NULL for category returns an enumerator of all accounts of the specified type. Similarly, specifying NULL for type returns an enumerator of all accounts of the specified category.

IOlkAccountManager::EnumerateAccounts does not support the address book category for an Exchange account. Если учетная запись является учетной записью Exchange (pclsidTypeCLSID_OlkMAPIAccount ), и вы пытаетесь перечислить учетные записи, реализующие адресную книгу (prgclsidCategoryCLSID_OlkAddressBook ), вызов IOlkAccountManager::EnumerateAccounts не вернет учетную запись Exchange в перечислитель учетных записей ppEnum.

См. также