Udostępnij za pośrednictwem


IDevicePacketStream::IsConnected

Checks if stream is connected.

HRESULT IsConnected([retval][out] VARIANT_BOOL *pbConnected)

Parameters

  • pbConnected
    True if stream is connected; otherwise, false.

Return Value

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

  • E_INVALIDARG | Arguments are not valid (pbConnected is NULL).

  • E_FAIL | for any other failure.

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

IDevicePacketStream..::.IsConnected

Requirements

DeviceAgentTransport.h

See Also

Reference

IDevicePacketStream