コード例 #1
0
 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);
     }
 }
コード例 #2
0
 internal static extern Int32 RoGetActivationFactory(
     HSTRING classId,
     [In, MarshalAs(UnmanagedType.LPStruct)] Guid guid,
     [Out, MarshalAs(UnmanagedType.IUnknown)] out object iface);
コード例 #3
0
 internal static void LoadXml(Window.Data.Xml.Dom.IXmlDocumentIO content, string xml)
 {
     using (var hString_xml = HSTRING.FromString(xml))
         content.LoadXml(hString_xml);
 }
コード例 #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));
 }