Share via


IXPLogon::EndMessage

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 page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Informs the transport provider that the MAPI spooler completed its processing on an outbound message.

HRESULT EndMessage(
  ULONG ulMsgRef,
  ULONG FAR * lpulFlags
);

Parameters

  • ulMsgRef
    [in] A message-specific reference value that was obtained in an earlier call to the IXPLogon::SubmitMessage method.

  • lpulFlags
    [out] A bitmask of flags that indicates to the MAPI spooler what it should do with the message. If no flags are set, the message has been sent. The following flags can be set:

    • END_DONT_RESEND
      The transport provider has all the information it needs about this message for now. When the transport provider requires more information or when it has sent the message, it notifies the MAPI spooler by calling the IMAPISupport::SpoolerNotify method with the NOTIFY_SENTDEFERRED flag and by passing the message's entry identifier.

    • END_RESEND_LATER
      The transport provider is not sending the message at the current time for reasons that are not error conditions. The transport provider should be called again later to send the message.

    • END_RESEND_NOW
      The transport provider needs to restart the message passed to it in an IMessage::SubmitMessage method call.

Return Value

  • S_OK
    The call succeeded and returned the expected value or values.

Remarks

The MAPI spooler calls the IXPLogon::EndMessage method after it completes the processing involved in providing extended delivery or nondelivery information.

Once this call returns, the value in the ulMsgRef parameter is no longer valid for this message. The transport provider can reuse the same value on a future message.

All objects that the transport provider opens during the transfer of a message should be released before the EndMessage call returns, with the exception of the message object that the MAPI spooler passes to the transport provider. The message object passed by the MAPI spooler is invalid after the EndMessage call.

See Also

Reference

IMAPISupport::SpoolerNotify

IMessage::SubmitMessage

IXPLogon::SubmitMessage

IXPLogon : IUnknown