The IConnector interface represents a point of connection between components. The client obtains a reference to an IConnector interface by calling the IDeviceTopology::GetConnector or IConnector::GetConnectedTo method, or by calling the IPart::QueryInterface method with parameter iid set to REFIID IID_IConnector.
An IConnector interface instance can represent:
- An audio jack on a piece of hardware
- An internal connection to an integrated endpoint device (for example, a built-in microphone in a laptop computer)
- A software connection implemented through DMA transfers
The methods in the IConnector interface can describe various kinds of connectors. A connector has a type (a ConnectorType enumeration constant) and a subtype (a GUID obtained from the IPart::GetSubType method).
A part in a device topology can be either a connector or a subunit. The IPart interface provides methods that are common to connectors and subunits.
For code examples that use the IConnector interface, see the implementations of the GetHardwareDeviceTopology and SelectCaptureDevice functions in Device Topologies.
The IConnector interface inherits from the IUnknown interface. IConnector also has these types of members:
The IConnector interface has these methods.
Connects this connector to a connector in another device-topology object.
Disconnects this connector from another connector.
Gets the connector to which this connector is connected.
Gets the global ID of the connector, if any, that this connector is connected to.
Gets the direction of data flow through this connector.
Gets the device identifier of the audio device, if any, that this connector is connected to.
Gets the type of this connector.
Indicates whether this connector is connected to another connector.
Minimum supported client
|Windows Vista [desktop apps only]|
Minimum supported server
|Windows Server 2008 [desktop apps only]|
Build date: 11/12/2012