IConnector::IsConnected method (devicetopology.h)

The IsConnected method indicates whether this connector is connected to another connector.

Syntax

HRESULT IsConnected(
  [out] BOOL *pbConnected
);

Parameters

[out] pbConnected

Pointer to a BOOL variable into which the method writes the connection state. If the state is TRUE, this connector is connected to another connector. If FALSE, this connector is unconnected.

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
E_POINTER
Pointer pbConnected is NULL.

Remarks

For a code example that calls the IsConnected method, see the implementation of the SelectCaptureDevice function in Device Topologies.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header devicetopology.h

See also

IConnector Interface