How to remove named event from system notifications?

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top