void IToastNotificationAdapter.Show(IToastNotification notification)
 {
     if (notifier == null)
     {
         using (var hString_appId = HSTRING.FromString(appId))
             ComFunctions.CheckHRESULT(manager.CreateToastNotifierWithId(hString_appId, out notifier));
     }
     if (notifier != null && notification != null)
     {
         notifier.Show(notification);
     }
 }
Exemplo n.º 2
0
 internal static extern Int32 RoGetActivationFactory(
     HSTRING classId,
     [In, MarshalAs(UnmanagedType.LPStruct)] Guid guid,
     [Out, MarshalAs(UnmanagedType.IUnknown)] out object iface);
 internal static void LoadXml(Window.Data.Xml.Dom.IXmlDocumentIO content, string xml)
 {
     using (var hString_xml = HSTRING.FromString(xml))
         content.LoadXml(hString_xml);
 }
Exemplo n.º 4
0
 internal static int RoGetActivationFactory(string classId, Guid guid, out object iface)
 {
     using (var hString_classId = HSTRING.FromString(classId))
         return(Unsafe.RoGetActivationFactory(hString_classId, guid, out iface));
 }