Share via


INDConnector::NotifyDisconnect Method

Notifies the caller that an established connection was disconnected.

Syntax

HRESULT NotifyDisconnect(
  [in, out]  OVERLAPPED *pOverlapped
);

Parameters

  • pOverlapped [in, out]
    A pointer to an OVERLAPPED structure that is used to indicate a disconnection request.

Return Value

When you implement this method, you should return the following return values. If you return others, try to use well-known values to aid in debugging issues.

Return code Description
ND_SUCCESS

The operation succeeded.

ND_PENDING

The request is pending.

ND_CONNECTION_INVALID

The endpoint was never connected.

 

Asynchronously, the method can also return ND_CANCELED (ND_CANCELED should only be returned when a caller calls INDConnector::CancelOverlappedRequests).

Implementation Notes

An endpoint should not have its outstanding requests completed with a canceled status when receiving a disconnection request. The only action a provider should take is to complete the NotifyDisconnect request, if any.

Requirements

Product

Microsoft Message Passing Interface (MS-MPI)

Header

Ndspi.h

See Also

INDConnector

 

 

Send comments about this topic to Microsoft

Build date: 7/2/2010