GetInterface (DirectShow) (Compact 2013)

3/26/2014

This function retrieves an interface pointer.

Syntax

HRESULT GetInterface(
  LPUNKNOWN pUnk,
  void** ppv
);

Parameters

  • pUnk
    Pointer to the IUnknown interface.
  • ppv
    Retrieved interface.

Return Value

Returns an HRESULT value.

Remarks

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 CUnknown::NonDelegatingQueryInterface method.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

Object and Pin Functions