次の方法で共有


Handling Connection Notification (Windows Embedded CE 6.0)

1/6/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