Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now works on windows 10 whatever update edition #20

Merged
merged 1 commit into from
Jan 6, 2018

Conversation

DamianX
Copy link
Contributor

@DamianX DamianX commented Jan 4, 2018

I assume this closes #19 but I'm not sure as I don't have a windows 8.1 machine.
Works on my windows 10, though.


toast_text_elements.item(0).unwrap().append_child(&*toast_xml.create_text_node(&FastHString::from(msg_title)).unwrap().query_interface::<IXmlNode>().unwrap()).unwrap();
toast_text_elements.item(1).unwrap().append_child(&*toast_xml.create_text_node(&FastHString::from(msg_body)).unwrap().query_interface::<IXmlNode>().unwrap()).unwrap();

let toast = ToastNotification::create_toast_notification(&*toast_xml).unwrap();
ToastNotificationManager::create_toast_notifier_with_id(&FastHString::new("aa")).unwrap().show(&*toast).unwrap();
ToastNotificationManager::create_toast_notifier_with_id(&FastHString::new("{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe")).unwrap().show(&*toast).unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have any insight into what this UUID looking thing is?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's some insight: allenbenz/winrt-notification#1

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the linking that. and for posterity, looks like this UUID thing is a known GUID for the system directory https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457(v=vs.85).aspx

@frewsxcv frewsxcv merged commit 5b8137f into frewsxcv:master Jan 6, 2018
@frewsxcv
Copy link
Owner

frewsxcv commented Jan 6, 2018

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't work on windows 8.1
2 participants