IInternalUnknown::QueryInternalInterface method (objidlbase.h)

Retrieves pointers to the supported internal interfaces on an object.

Syntax

HRESULT QueryInternalInterface(
  [in]  REFIID riid,
  [out] void   **ppv
);

Parameters

[in] riid

The identifier of the internal interface being requested.

[out] ppv

The address of a pointer variable that receives the interface pointer requested in the riid parameter. Upon successful return, *ppv contains the requested interface pointer to the object. If the object does not support the interface, *ppv is set to NULL.

Return value

This method returns S_OK if the interface is supported, and E_NOINTERFACE otherwise.

Remarks

This method is similar to the IUnknown::QueryInterface method, except that the COM proxy manager, when aggregated, will not expose some interfaces through QueryInterface. Instead, those internal interfaces must be exposed through QueryInternalInterface.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidlbase.h (include ObjIdl.h)

See also

IInternalUnknown

IUnknown::QueryInterface