Microsoft DirectX 8.1 (C++) |
The ConnectWithType method connects directly to the specified pin by using the specified media type.
Syntax
HRESULT ConnectWithType(
IUnknown *pPin,
IDispatch *pMediaType
);
Parameters
pPin
[in] Pointer to the pin to connect to; pPin is an object that must support either the IPin or the IPinInfo interface.
pMediaType
[in] Pointer to the media type the pin is connecting with; pMediaType must support the IMediaTypeInfo interface.
Return Value
Returns an HRESULT value.
Remarks
This method enables you to determine which media type you want the connection to be made with, rather than letting the pins decide the media type upon connection.
See Also