7. Notifications

< BACK  NEXT >
[oR]

Chapter 7. Notifications

The notification functions described in this chapter can be used to run an application at a particular time, or in response to an event such as completion of synchronization or a serial connection being made. Alternatively, the functions can be used to notify the user of such events through, for example, a flashing LED. The notification functions will operate even if the Windows CE device is suspended. The events for which a notification can be given include:

  • When data synchronization finishes

  • When a PC Card device is changed

  • When an RS232 connection is made

  • When the system time is changed

  • When a full device data restore completes

Users can be notified in a variety of ways, and should be allowed to specify their preference. Notification can occur by:

  • Flashing the LED

  • Vibrating the device

  • Displaying the user notification dialog box

  • Playing a sound

Windows CE operating system versions prior to 2.12 should use the notification functions CeRunAppAtTime, CeRunAppAtEvent, and CeSetUserNotification. These are described in the first part of this chapter. In Windows CE 2.12, 3.0, and later, these functions are replaced with the single function CeSetUserNotificationEx. This function can be used when you don't need compatibility with earlier operating system versions, or when you need the additional functionality it provides. It is described in the section "CeSetUserNotificationEx".


< BACK  NEXT >


Windows CE 3. 0 Application Programming
Windows CE 3.0: Application Programming (Prentice Hall Series on Microsoft Technologies)
ISBN: 0130255920
EAN: 2147483647
Year: 2002
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net