Reputation: 105
I'm implementing Windows 10 desktop notifications in my program (written in C++ using the Win32 APIs) and for some I would like to add a custom sound. Going by this page, there are two supported audio file sources:
Supported audio file sources:
ms-appx:///
ms-resource
ms-appx is (as far as I can tell) something specific to UWP apps (or at least packaged apps), so that seems like it wouldn't work for my case.
But what is ms-resource? I've tried looking it up in a number of different ways and have not been able to figure it out. I've tried adding the wave file to the visual studio project's resources and putting the file name into the notification's XML, but that doesn't work - in fact, it entirely messes up the notification. All of the information I've added to the notification's XML doesn't appear anymore, only a small notification saying "New notification".
So, how do I add a custom audio file to a Windows desktop toast notification?
Upvotes: 2
Views: 48