Receiving Connection Notification
Connection Notification is the method for starting applications automatically when the Windows CE-based device is either connected to or disconnected from the desktop computer. An application must be registered in the desktop system registry for each desired event. Once that is done, the Windows CE Services connection manager starts the application whenever the specified event occurs.
The following applications are registered in the desktop system registry:
- Explorer for Windows CE.
- Remote tools (for example, the debugger) provided with Windows CE Toolkit for Visual C++ 5.0.
- Connection notification client sample. This sample code is provided with the Windows CE SDK and provides a basic template for receiving connection notifications. For a description of this sample, see Windows CE Sample Applications.
There are two methods to register the desktop application:
- Registry-based notification using command lines that are registered in the system registry.
- COM interface-based notification using two Component Object Model (COM) interfaces, one implemented by the connection manager and the other by the application, to perform the registration.