The Wxutil.h and Combase.h header files in the DirectShow base classes provides helper functions for comparing objects and pins and retrieving interfaces to objects.
| Function | Description |
| EqualPins | Checks if two pins are on the same object. |
| GetInterface | Returns an interface pointer to the requested client. |
| IsEqualObject | Checks if two interfaces are on the same object. |
Checks if two pins are on the same object.
BOOL EqualPins(
IUnknown * pPin1,
IUnknown * pPin2
);
Returns TRUE if the pins are both on the same object, or FALSE otherwise.
Retrieves an interface pointer.
HRESULT GetInterface(
LPUNKNOWN pUnk,
void **ppv
);
Returns an HRESULT value.
This member function performs a thread-safe increment of the reference count. To retrieve the interface and add a reference, call this function from your overriding implementation of the INonDelegatingUnknown::NonDelegatingQueryInterface method.
Checks if two interfaces are on the same object.
BOOL WINAPI IsEqualObject(
IUnknown * pFirst,
IUnknown * pSecond
);
Returns TRUE if the interfaces are both on the same object, or FALSE otherwise.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.