Partager via


GetXRApplicationInstance (Windows Embedded CE 6.0)

1/6/2010

This function obtains a reference to a per-process singleton object that is the application object for Silverlight 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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Silverlight for Windows Embedded Functions