Share via


IOlkAccountManager::FindAccount

IOlkAccountManager::FindAccount

Finds an account by property value.

Quick Info

See IOlkAccountManager.

  HRESULT IOlkAccountManager::FindAccount ( 
	DWORD dwProp,
	ACCT_VARIANT *pVar,
	IOlkAccount **ppAccount
);

Parameters

dwProp

[in] The property to search on. Must be PROP_ACCT_ID or PROP_ACCT_IS_EXCH.

pVar

[in] The value to match.

ppAccount

[out] The account found. This object supports an IOlkAccount interface.

Return Values

E_ACCT_NOT_FOUND

Cannot find the specified account.

E_OLK_NOT_INITIALIZED

The account manager has not been initialized for use.

E_OLK_PARAM_NOT_SUPPORTED

Invalid parameter.

See Also

ACCT_VARIANT

Constants for the Account Management API

IOlkAccount