IOlkAccountManager::EnumerateAccounts [Outlook 2003 API Reference]
Microsoft Office Outlook 2003 Integration API Reference
IOlkAccountManager::EnumerateAccounts [Outlook 2003 API Reference]

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

Quick Info

See IOlkAccountManager.

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

Parameters

pclsidCategory

[in] The class identifier of the category to enumerate.
CLSID_OlkMail
CLSID_OlkAddressBook
CLSID_OlkStore

pclsidType

[in] The class identifier of the account type to enumerate.
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.

Return Values

E_OLK_NOT_INITIALIZED

The account manager has not been initialized for use.

Remarks

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.

See Also

Constants for the Account Management API
IOlkEnum


© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View