mohabouje / WinToast

WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10. Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
MIT License
688 stars 127 forks source link

Crash when showing a toast from non-admin account in elevated context #54

Open yuyoyuppe opened 4 years ago

yuyoyuppe commented 4 years ago

Repro steps:

  1. compile example
  2. log in as non-admin user
  3. launched elevated cmd shell
  4. WinToast Console Example.exe" --text
  5. observe the crash

We've had a similar issue and it could be solved by initializing COM security with L"(A;;0x7;;;IU)".

mohabouje commented 1 year ago

To keep things simple, the most effective way is to provide a set of helper functions to configure the COM security if required. I will utilize the files that you have linked and introduce this feature in version 1.4.0.

I am keeping this open for now.

See also https://github.com/mohabouje/WinToast/issues/86 for more information.