Esempio n. 1
0
 private void AddXBoxControlersVIDPIDsToPnPDevices(List <PnPEntityInfo> collection)
 {
     foreach (var pnpEntityInfo in collection)
     {
         if (pnpEntityInfo.DeviceID.Contains(WMI.XInputDeviceIDMarker))
         {
             pnpEntityInfo.IsXBoxDevice  = true;
             pnpEntityInfo.VID_PID       = WMI.Get_VID_PID(pnpEntityInfo.DeviceID);
             pnpEntityInfo.PID_VIDstring = WMI.Get_PID_VID(pnpEntityInfo.DeviceID);
         }
     }
 }