Windows CE Services gives you two ways of notifying desktop computer-based applications when a connection is made with a Windows CE–based device:
Registry-based notification is appropriate for applications that do not need some control of the connection manager or the ability to register and deregister for connection notifications. The COM interface–based notification method is more complex than registry-based notification; however, it provides you with some control of the connection manager and the ability to register and deregister for connection notifications.