Partager via


IOlkAccountManager::FindAccount

Finds an account by property value.

Quick Info

See IOlkAccountManager.

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

Parameters

  • pVar
    [in] The value to match.
  • ppAccount
    [out] The account found. This object supports an IOlkAccount interface.

Return Values

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.

See also

ACCT_VARIANT
Constants (Account Management API)
IOlkAccountHelper