Export (0) Print
Expand All

IOlkAccountManager::FindAccount

Last modified: October 25, 2010

Applies to: Office 2007 | Office 2010 | Outlook 2010

In this article
Quick Info
Parameters
Return Values

Finds an account by property value.

See IOlkAccountManager.

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

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.

HRESULT

Description

S_OK

The call succeeded.

E_ACCT_NOT_FOUND

The specified account cannot be found.

E_OLK_NOT_INITIALIZED

The account manager has not been initialized for use.

E_OLK_PARAM_NOT_SUPPORTED

One or more parameters are invalid.

Show:
© 2014 Microsoft