IAgentTransportShutdownCallback

Defines the methods that a shutdown callback object must implement.

IAgentTransportShutdownCallback : public IUnknown

Methods

Method

Description

IAgentTransportShutdownCallback::Shutdown

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

Remarks

A device agent is useful as long as conmanclient2.exe is running on the device. When conmanclient2.exe is shutdown, all device agents are also shutdown. A device agent can request to receive shutdown notification to perform cleanup and exit gracefully. In order to receive shutdown notification, the device agent must define a class that implements this interface and then register it using IDeviceAgentTransport::RegisterShutdownCallback.

Example

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

Managed Equivalent

Microsoft.SmartDevice.DeviceAgentTransport..::.IAgentTransportShutdownCallback

Requirements

DeviceAgentTransport.h

See Also

Other Resources

Unmanaged Device-Side Smart Device Connectivity API