Compartilhar via


Handling Connection Notification

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

There are two ways desktop applications can be notified that connection has been made with a Windows Embedded CE–based device:

  • In registry-based notification, connection and disconnection are predefined events, each with its own registry key. Each key can be assigned a command line to be executed when the corresponding event occurs.
  • In COM-based notification, two interfaces— IDccMan (provided by Rapi.dll) and IDccManSink (implemented by the application seeking notification) — handle connection/disconnection and related actions.

The fundamental difference between registry- and COM-based notification is that registry-based notification simply causes a program to run. COM-based notification provides programmatic connection with those applications that want to be notified. This makes possible control of the connection manager, registering and deregistering for connection notification, or any kind of operation best-handled from within the application that creates the data to be synchronized.

See Also

Concepts

Managing Connection Notification, File Converters, and Partnerships