How To Launch Device-Side Applications at System Events (276556)
The information in this article applies to:
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q276556 SUMMARY
The CeRunAppAtEvent API function allows developers to launch an application when a specified event occurs. Such events include the following: - When a PC Card device is changed.
- When a full device data restore completes.
- When an RS232 connection is made.
- When data synchronization finishes.
- When the system time is changed.
- When the time zone is changed.
- When the device wakes up.
Use the CeRunAppAtEvent function sparingly, however, because the automatic starting of an application can confuse the user and cause low-memory conditions on a computer with restricted memory. Ideally, the application should be small and non-intrusive. NOTE: This information applies to the version of the operating system as provided by Microsoft. Actual implementation is determined by the original equipment manufacturer (OEM) and some devices may not support this function.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
217159 INF: Automatically Starting an Application Upon Flash Card Insertion
Notify.h header file
Note that the following constants are defined in the header file, but they are not supported:
NOTIFICATION_EVENT_IR_DISCOVERED
NOTIFICATION_EVENT_NET_CONNECT
NOTIFICATION_EVENT_NET_DISCONNECT
NOTIFICATION_EVENT_OFF_AC_POWER
NOTIFICATION_EVENT_ON_AC_POWER
Modification Type: | Minor | Last Reviewed: | 7/2/2004 |
---|
Keywords: | kbhowto KB276556 |
---|
|