Beispiel #1
0
 public DeviceList(DeviceEnumerator enumerator)
 {
     devInfo = WinApi.SetupDiGetClassDevs(IntPtr.Zero, enumerator.Id, IntPtr.Zero, WinApi.DIGCF_ALLCLASSES | WinApi.DIGCF_PROFILE);
     if (devInfo.ToInt32() != WinApi.INVALID_HANDLE_VALUE)
     {
         devices = EnumerateDevices(devInfo);
     }
 }
Beispiel #2
0
 public DeviceList (DeviceEnumerator enumerator)
 {
     devInfo = WinApi.SetupDiGetClassDevs (IntPtr.Zero, enumerator.Id, IntPtr.Zero, WinApi.DIGCF_ALLCLASSES | WinApi.DIGCF_PROFILE);
     if (devInfo.ToInt32 () != WinApi.INVALID_HANDLE_VALUE)
         devices = EnumerateDevices (devInfo);
 }