IOlkAccountManager::Init [Outlook 2003 API Reference]
Initializes the account manager for use.
Quick Info
See IOlkAccountManager.
HRESULT IOlkAccountManager::Init (
IOlkAccountHelper *pAcctHelper,
DWORD dwFlags
);
Parameters
pAcctHelper
[in] An IOlkAccountHelper interface providing account helper functionality.
dwFlags
[in] Flags to modify behavior.
ACCT_INIT_NOSYNCH_MAPI_ACCTS
Use this to avoid synchronizing MAPI services with accounts.
OLK_ACCOUNT_NO_FLAGS
Specify this value to synchronize MAPI services with accounts.
Return Values
E_OLK_ALREADY_INITIALIZED
Init has already been called.
E_OLK_REGISTRY
The account manager could not access the required registry settings.
Remarks
The client must call IOlkAccountManager::Init to initialize the account manager before using the account manager to access accounts or set up notifications. Because Outlook automatically synchronizes MAPI services with accounts on startup, use ACCT_INIT_NOSYNCH_MAPI_ACCTS unless there is a specific cause to synchronize.