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); } }
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); }