How to remove named event from system notifications?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
My application gets custom event notification and is working as expected
sending the custom event as app name
(\\.\Notifications\NamedEvents\MyTestEvent) using the API
CeSetUserNotificationEx. But now I need to have functionality to cancel these
events. Meaning I want to remove the event entry from the system
notifications. I tried setting different date time values such as minimum
null etc but nothing seems to be working.

Can anyone help me out?

Thank you
 
Thanks Fabien, Implemented it and is working.


Fabien said:
Hi,

You can call CeClearUserNotification : http://msdn2.microsoft.com/en-us/library/ms933213.aspx

[DllImport("coredll.dll", EntryPoint="CeClearUserNotification",
SetLastError=true)]
private static extern bool CeClearUserNotification(int hNotification);

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant


ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/

Hi,
My application gets custom event notification and is working as expected
sending the custom event as app name
(\\.\Notifications\NamedEvents\MyTestEvent) using the API
CeSetUserNotificationEx. But now I need to have functionality to cancel these
events. Meaning I want to remove the event entry from the system
notifications. I tried setting different date time values such as minimum
null etc but nothing seems to be working.

Can anyone help me out?

Thank you
 
Back
Top