Compartilhar via


BEGIN_QI_MAP (Compact 2013)

3/28/2014

This macro defines the beginning of an interface map, which is a list of interfaces that are implemented for an XRObject<Base> object instance in XAML for Windows Embedded.

Syntax

void BEGIN_QI_MAP(void)

Parameters

None.

Return Value

None.

Remarks

You can define an interface map in a custom class type to provide support for obtaining different types of interface pointers to an XRObject<Base> instance of the custom class. You obtain an interface pointer by calling XRObject.QueryInterface(const IID&,void * *).

Example Code

The following example code shows an interface map in XAML for Windows Embedded.

Important

For readability, the following code example does not contain security checking or error handling. Do not use the following code in a production environment.

Example

template<typename IFace, typename ItemType, typename ItemComparer, typename ItemConverter, typename ItemLifeManager>
class _XRValueCollectionBaseT : public IFace
{
    BEGIN_QI_MAP()
        QI_MAP_INTERFACE(IXRList)
        QI_MAP_INTERFACE(IXRValueCollection)
        QI_MAP_INTERFACE(IXREnumerable)
    END_QI_MAP()

Requirements

Header

XRUnknown.h

See Also

Reference

XAML for Windows Embedded Macros
XRObservableCollection.CreateInstance(XRObservableCollection * *)