다음을 통해 공유


IAMExtDevice::get_DevicePort

 
Microsoft DirectShow 9.0

IAMExtDevice::get_DevicePort

The get_DevicePort method retrieves the communication port to which the external device is connected.

Syntax

  HRESULT get_DevicePort(
  long *pDevicePort
);

Parameters

pDevicePort

[out]  Pointer to a long integer that receives one of the following values, indicating the port to which the device is connected:

Value Description
DEV_PORT_1394 IEEE 1394 Bus
DEV_PORT_ARTI ARTI driver
DEV_PORT_COM1 COM1
DEV_PORT_COM2 COM2
DEV_PORT_COM3 COM3
DEV_PORT_COM4 COM4
DEV_PORT_DIAQ Diaquest driver
DEV_PORT_SIM Simulation port
DEV_PORT_USB Universal Serial Bus

Return Values

When this method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.

DV Implementation

The MSDV driver returns the value DEV_PORT_1394. The UVC driver returns the value DEV_PORT_USB.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also