| Microsoft DirectX 9.0 | 
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
For DV camcorders, the method returns the value DEV_PORT_1394.
See Also