Microsoft DirectX 8.1 (C++) |
The FindUpstreamInterface method searches upstream from the specified pin for a pin or filter that supports the specified interface.
Syntax
HRESULT FindUpstreamInterface(
IPin *pPin,
REFIID riid,
void **ppvInterface,
DWORD dwFlags
);
Parameters
pPin
[in] Pointer to the IPin interface of the pin from which to begin searching.
riid
[in] Reference to an interface identifier (IID) that specifies the interface to find.
ppvInterface
[out] Address of a void pointer. If the method succeeds, this variable receives a pointer to the interface specified by riid.
dwFlags
[in] Combination of flags from the AM_INTF_SEARCH_FLAGS enumeration, specifying what to search (pins or filters).
Return Values
Returns one of the following HRESULT values.
Return code | Description |
E_NOINTERFACE | Interface not found. |
E_POINTER | Invalid pointer. |
S_OK | Success. |
See Also