Using Mini-Applications with Notification

In general it is best not to run large applications using CeRunAppAtTime, since the user may be confused by a new application suddenly appearing and may cause an out-of-memory error. Instead, you should create a "mini-application" with no user interface and have this application run at the specified time. The "mini-application" can then notify the main application through a private message of the event, or perhaps perform some scheduled task.

Listing 7.2 shows the code for a "mini-application" called Notify.exe. This is a Windows CE application with a WinMain function that registers a new windows message using the RegisterWindowMessage function. The RegisterWindowMessage function is passed a string and ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.