Microsoft DirectX 8.1 (C++)

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.

See Also