Receiving Connection Notification
Connection notification is the method by which applications on a desktop computer are notified when a Windows CE–based device is either connected to or disconnected from the desktop computer. To launch applications automatically, an application must be registered in the system registry on the desktop computer for each connection event. Once the application is registered, the Windows CE Services connection manager starts the application whenever the specified event occurs.
The following applications are registered in the system registry on the desktop computer:
- Windows CE Explorer.
- Remote tools (for example, the debugger), which are provided with Windows CE Platform Builder.
- Connection notification client sample code, which provides a basic template for receiving connection notifications. For a description of this sample, see the CD-ROM that accompanies this documentation.
There are two methods to register the desktop application:
- Registry-based notification, by using command lines that are registered in the registry on the desktop computer.
- COM interface–based notification, by using two Component Object Model (COM) interfaces—one that is implemented by the connection manager and the other by the application—to perform the registration.