Udostępnij za pośrednictwem


IPacket::ReadDataType

Returns the data type of the current object in the packet as an enumeration value.

HRESULT ReadDataType([retval][out] DataTypeEnum *out_enumDataType)

Parameters

  • out_enumDataType
    A DataTypeEnum that contains the data type of the current object in the packet.

Return Value

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

Example

In this example, the packet stream reads data from the RemoteAgent object on the desktop while connected. For the complete example, see IDeviceAgentTransport.

Managed Equivalent

IPacket..::.ReadDataType

Requirements

DeviceAgentTransport.h

See Also

Reference

IPacket