IImnAccountManager::GetDefaultAccount method

[IImnAccountManager::GetDefaultAccount is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Gets the account object that is the default for the specified account type.

Syntax

HRESULT GetDefaultAccount(
  [in]  ACCTTYPE    AcctType,
  [out] IImnAccount **ppAccount
);

Parameters

AcctType [in]

Type: ACCTTYPE

Specifies an ACCTTYPE value that indicates the type of account.

ppAccount [out]

Type: IImnAccount**

Receives the address of a pointer to the IImnAccount object found. The client is responsible for releasing this object.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_FAIL
Indicates that an account was not found that meets the criteria.
E_INVALIDARG
Indicates that ppAccount is NULL or that AcctType is invalid.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Imnact.h
IDL
Imnact.idl
DLL
Msoeacct.dll (version 6.0 or later)