Share via


XRObject.QueryInterface(const IID&,void * *) (Compact 2013)

3/28/2014

This method obtains a specific type of interface pointer to the XRObject<Base> object.

Syntax

HRESULT QueryInterface(
const IID @ riid,
void * * ppvObj)

Parameters

  • riid
    [in] Identifier of the interface that you are requesting.
  • ppvObj
    [out] Pointer to the interface requested in the rIID parameter.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

The method succeeded.

E_FAIL

The method was not successful.

E_POINTER

The ppvObj parameter is not valid.

Remarks

This method implements functionality that resembles IUnknown::QueryInterface.

Requirements

Header

XRUnknown.h

See Also

Reference

XRObject<Base>