IXRCustomControlFactory::ResolveControlByIID (Compact 2013)

3/28/2014

This method is called by XAML for Windows Embedded and returns a control cookie for a custom user control that has the supplied COM interface ID (IID), and the control cookie can be used to create an instance of that control.

Syntax

HRESULT STDMETHODCALLTYPE ResolveControlByIID(
  __in  REFIID        iid,
  __out UINT*         pControlCookie
) = 0;

Parameters

  • iid
    [in] Identifier of the COM interface for the custom control.
  • pControlCookie
    [out] Pointer to an implementation-defined value with the high-order word masked at 0x0000FFFF.

    Pass this 16-bit value into IXRCustomControlFactory::CreateInstance as the control cookie to create an instance of the custom user control.

Return Value

An HRESULT that indicates success or failure.

Remarks

You can create a custom implementation of this method if you will use an IID to create an instance of a custom user control by using the control factory. To use values from source XAML to create the control instance, use IXRCustomControlFactory::ResolveControlByName instead. Implementing custom functionality for this method is optional. If this method is not required for your application, return E_NOTIMPL.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCustomControlFactory