コード例 #1
0
 private static void Initialize(UsbDevice device)
 {
     device.Open();
     device.DetachFromKernel(device.Configs[0].Interfaces[0].Number);
     device.SetConfiguration(device.Configs[0].ConfigurationValue);
     device.ClaimInterface(device.Configs[0].Interfaces[0].Number);
 }