GetXRApplicationInstance (Compact 2013)
This function obtains a reference to a per-process singleton object that is the application object for XAML for Windows Embedded.
HRESULT WINAPI GetXRApplicationInstance( IXRApplication** ppApplication );
[out] Address that holds a pointer to an IXRApplication instance that represents the singleton application object.
Returns an HRESULT that indicates success or failure.
Returns XR_E_NOT_INITIALIZED if XamlRuntimeInitialize was not successfully called.
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