Share via


MAPILogonEx (Compact 7)

3/12/2014

The MAPILogonEx function logs a client application onto a MAPI session with the Windows Embedded Compact 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 MAPI session interface, ICEMAPISession. Cast this parameter as a reference to IMAPISession.

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

Requirements

Header

mapix.h

Library

cemapi.lib

See Also

Reference

MAPI Functions
IMAPISession::GetMsgStoresTable
IMAPISession::OpenMsgStore
MAPIInitialize