Share via


CUnknown::NonDelegatingQueryInterface

 
Microsoft DirectShow 9.0

CUnknown::NonDelegatingQueryInterface

Retrieves an interface pointer and increments the reference count. This method implements the INonDelegatingUnknown::NonDelegatingQueryInterface method.

Syntax

  HRESULT NonDelegatingQueryInterface(
    REFIID riid,
    void **ppv
);

Parameters

riid

Identifier of the interface.

ppv

Address of a pointer to receive the interface.

Return Value

Returns one of the HRESULT values shown in the following table.

Value Description
S_OK Success.
E_NOINTERFACE Object does not support this interface.
E_POINTER NULL pointer argument.

Remarks

The CUnknown class exposes only the IUknown interface. Override this method to expose additional interfaces. For information on how to override this method, see How to Implement IUnknown.

Requirements

**  Header:** Declared in Combase.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also

CUnknown Class