Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The MailSwitchToAccountfunction switches to the specified account.

Syntax

HRESULT MailSwitchToAccount(
  LPCTSTR 
pszAccount, 
  DWORD 
dwFlags
);

Parameters

pszAccount

[in] The account to switch to, in listview. It can be specified either by its name or by the name of the transport, determined by the flag set in the dwFlagsparameter.

dwFlags

[in] Flag used to specify whether the pszAccountparameter contains the name of the account or the name of the transport. See MAPI Compose Field Flagsfor possible values.

Return Value

This function returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK

The call succeeded.

Remarks

This function is synchronous. When this function returns, the specified account is shown in listview.

Requirements

Header cemapi.h
Library cemapi.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

MAPI Functions

Other Resources

Messaging

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.