private void OnDeviceChange(IntPtr reason, IntPtr pHdr)
 {
     // Check for the right category of event
     if (rdn.CheckEventDetails(reason, pHdr))
     {
         if (camProcess != null)
         {
             var sSym = RegisterDeviceNotifications.ParseDeviceSymbolicName(pHdr);
             if (camProcess.CheckDeviceLost(sSym))
             {
                 NotifyError("Lost the capture device", 0);
             }
         }
     }
 }