MAPILogonEx

Send Feedback

The MAPILogonEx function logs a client application onto a MAPI session with the Windows Mobile messaging subsystem.

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.
MAPI_E_NOT_ENOUGH_MEMORY
Not enough memory to create a MAPI session.

Requirements

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 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


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: