QI_IDENTITY_MAPPING(Self,Base) (Compact 2013)

3/28/2014

This helper macro defines an interface map that implements the specified interface and adds the interface map of the specified base class to an XRObject<Base> object instance.

Syntax

void QI_IDENTITY_MAPPING(
Self,
Base)

Parameters

  • Self
    [in] The interface to implement for the XRObject<Base> object instance.
  • Base
    [in] A base class of the current object.

Return Value

None.

Remarks

You can use this helper macro in a custom class definition without having to define the BEGIN_QI_MAP and END_QI_MAP macros.

Example

The following example code adds ICustomUserControl to an interface map for ICustomUserControl, to use in calls to XRObject.QueryInterface(const IID&,void * *) on an XRObject<ICustomUserControl> object instance.

class __declspec(uuid("{2591F8EF-826E-43e8-BEBF-078E282327FA}")) ICustomUserControl:public XRCustomUserControlImpl<ICustomUserControl>
{
    QI_IDENTITY_MAPPING(ICustomUserControl, XRCustomUserControlImpl)

public:
// Add class members here.

}

Requirements

Header

XRUnknown.h

See Also

Reference

XAML for Windows Embedded Macros