I am able to successfully set alarms using CeSetUserNotificationEx and then
list them using CeGetUserNotificationHandles in 2003. In order to determine
the number of alarms (handles), I use CeGetUserNotificationHandles(NULL, 0,
&g_dwHowMany). In 2003, no problem. In 2005 I always get a return of false
and g_dwHowMany remains at the preset zero. The alarm(s) are set
successfully in 2005, because the message box displays at the correct time
with the appropriate text message. I just can't list them (and therefore
delete or change them) in 2005.

Anybody using the CeUserNotificationHandles function successfully in 5.0?

I'm using Visual Studio 2005 Professional with the Windows Mobile 5.0
Developer Resource Kit CD installed.

--
There are 10 kinds of people in this world; those that know binary and those
that don't.

RE: Notification Function in WM 5 fails but works in 2003 - Help by HowardCH

HowardCH
Fri May 26 11:31:01 CDT 2006


Some additional information: GetLastError for CeGetUserNotificationHandles
always returns FALSE and error "Invalid Parameter". I've compared the
entries in both include libraries for CeGetUserNotificationHandles (notify.h)
and the entries are identical. The problem occurs on both the emulator and
my Axim X51V but runs fine on my Axim X50 and the SDK 2003 emulator.

If there's an MVP or Microsoft type out there, do you have a work around?

Howard