Delen via


IAgentTransportShutdownCallback::Shutdown

Gives device-side agents a chance to perform clean up and exit.

HRESULT Shutdown([in] IUnknown *in_pUnknown)

Parameters

  • in_pUnknown
    Interface cookie of IUnknown

Return Value

An HRESULT value that indicates the outcome of the method call.

  • S_OK | This API call was successful.

  • E_FAIL | Return value for any other failure.

Remarks

To register the callback object, use IDeviceAgentTransport::RegisterShutdownCallback.

Example

The following example defines a custom implementation of IAgentTransportShutdownCallback. For the complete example, see IDeviceAgentTransport.

Managed Equivalent

IAgentTransportShutdownCallback..::.Shutdown

Requirements

DeviceAgentTransport.h

See Also

Reference

IAgentTransportShutdownCallback