Share via


DMsgrSessionEvents::OnTermination Event

Deprecated. Fires when the session has ended.

Syntax

void OnTermination(      
    long hr,
    BSTR bstrAppData
);

Parameters

  • hr
    [in] HRESULT that defines the return code for the operation.
  • bstrAppData
    [in] BSTR that corresponds to a value provided by an application's invocation of the IMsgrSession::Decline method or IMsgrSession::Cancel method.

Return Value

No return value.

Event DISPID

DISPID_ONTERMINATION

The DISPID for this event is defined in msgrpriv.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Remarks

Important  DMsgrSessionEvents::OnTermination is no longer available in Windows Vista. See Windows Messenger for more information.

See Also

DMsgrSessionEvents::OnAccepted, DMsgrSessionEvents::OnAppNotPresent, DMsgrSessionEvents::OnCancelled, DMsgrSessionEvents::OnContextData, DMsgrSessionEvents::OnDeclined, DMsgrSessionEvents::OnReadyToLaunch, DMsgrSessionEvents::OnSendError, DMsgrSessionEvents::OnStateChanged, IMsgrSession::Decline, IMsgrSession::Cancel, Messenger Lock and Key API, Messenger Session Invite and Messenger Private APIs