GetXRApplicationInstance (Compact 2013)

3/28/2014

This function obtains a reference to a per-process singleton object that is the application object for XAML for Windows Embedded.

Syntax

HRESULT WINAPI  GetXRApplicationInstance(
    IXRApplication** ppApplication
);

Parameters

  • ppApplication
    [out] Address that holds a pointer to an IXRApplication instance that represents the singleton application object.

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_NOT_INITIALIZED if XamlRuntimeInitialize was not successfully called.

Remarks

Each process on the target device can have its own IXRApplication object instance.

You must call XamlRuntimeInitialize before you call this function. You can use the methods on the returned IXRApplication object to perform application tasks, such as parsing XAML markup, creating new objects for the application, or starting the processing of messages.

This function adds a reference to the object that the caller releases.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Functions