Share via


MAPILogonEx

The MAPILogonEx function logs a client application on to a session with the messaging system.

Syntax

HRESULT MAPILogonEx(
  ULONG ulUIParam, 
  LPTSTR lpszProfileName, 
  LPTSTR lpszPassword, 
  FLAGS flFlags, 
  LPMAPISESSION FAR * lppSession 
);

Parameters

  • ulUIParam
    [in] Ignored.
  • lpszProfileName
    [in] Ignored.
  • lpszPassword
    [in] Ignored.
  • flFlags
    [in] Ignored.
  • lppSession
    [out] Reference to the Windows Mobile-based MAPI session interface, ICEMAPISession. Cast this parameter as a reference to IMAPISession.

Return Values

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

  • S_OK
    The logon succeeded.

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: mapix.h
Library: cemapi.lib

See Also

IMAPISession::GetMsgStoresTable

IMAPISession::OpenMsgStore

MAPI Functions

MAPIInitialize

Messaging

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.