Udostępnij za pośrednictwem


IDeviceAgentTransport

Used to communicate with a RemoteAgent on the desktop computer.

IDeviceAgentTransport : public IUnknown

Methods

Method

Description

IDeviceAgentTransport::AcknowledgeLaunch

Registers an array of service IDs. The device agent can accept connection requests from the development computer whose service ID is in the array.

IDeviceAgentTransport::AcceptConnectionEx

Accepts a connection initiated when CreatePacketStream is called on the desktop computer. The method then prepares the device packet stream argument for data transfer.

IDeviceAgentTransport::RegisterShutdownCallback

Registers a callback to receive notification before the agent is shut down.

IDeviceAgentTransport::UnregisterShutdownCallback

Removes the callback from the callback list. The callback will no longer receive shutdown notification.

Remarks

To get an object that implements this interface, use GetDeviceAgentTransport.

Example

The following example is a device agent application that writes one packet to the desktop and reads one packet from the desktop.

Managed Equivalent

Microsoft.SmartDevice.DeviceAgentTransport..::.IDeviceAgentTransport

Requirements

DeviceAgentTransport.h

See Also

Other Resources

Unmanaged Device-Side Smart Device Connectivity API