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); } }
internal static void LoadXml(Window.Data.Xml.Dom.IXmlDocumentIO content, string xml) { using (var hString_xml = HSTRING.FromString(xml)) content.LoadXml(hString_xml); }
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)); }