Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

In addition to supporting notification for the desktop computer-based application, Windows Mobile supports the Notification API, which allows applications on the Windows ®phone to receive connection notification.

CeRunAppAtEventprovides applications for Windows phones with the ability to be notified when a connection or other event occurs. When the event occurs, applications registered by CeRunAppAtEventare launched. For example, events include connecting a Windows phone to a desktop, restoring an operating system from a backup, or changing the system time.

The function is prototyped as follows.

Copy Code
BOOL CeRunAppAtEvent (TCHAR *pwszAppName, LONG lWhichEvent);

The first parameter gives the name of the application to be launched. The second parameter is a set of bit flags that indicate which events you want to track.

See Also