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

Re: How to remove named event from system notifications? by Fabien

Fabien
Tue Sep 11 12:06:09 PDT 2007

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/

On 11 sep, 20:02, Karkera <Kark...@discussions.microsoft.com> wrote:
> 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



Re: How to remove named event from system notifications? by Karkera

Karkera
Wed Sep 12 02:04:02 PDT 2007

Thanks Fabien, Implemented it and is working.


"Fabien" wrote:

> 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/
>
> On 11 sep, 20:02, Karkera <Kark...@discussions.microsoft.com> wrote:
> > 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
>
>
>