/// <summary> /// Gets the devices for a particular <see cref="DeviceType"/> and <see cref="DeviceEnumerationFlags"/>. /// </summary> /// <param name="deviceType">Type of the device.</param> /// <param name="deviceEnumFlags">The device enum flags.</param> /// <returns>A collection of <see cref="DeviceInstance"/></returns> public IList <DeviceInstance> GetDevices(DeviceType deviceType, DeviceEnumerationFlags deviceEnumFlags) { var enumDevicesCallback = new EnumDevicesCallback(); EnumDevices((int)deviceType, enumDevicesCallback.NativePointer, IntPtr.Zero, deviceEnumFlags); return(enumDevicesCallback.DeviceInstances); }
/// <summary> /// Gets the devices for a particular <see cref="DeviceType"/> and <see cref="DeviceEnumerationFlags"/>. /// </summary> /// <param name="deviceType">Type of the device.</param> /// <param name="deviceEnumFlags">The device enum flags.</param> /// <returns>A collection of <see cref="DeviceInstance"/></returns> public IList<DeviceInstance> GetDevices(DeviceType deviceType, DeviceEnumerationFlags deviceEnumFlags) { var enumDevicesCallback = new EnumDevicesCallback(); EnumDevices((int)deviceType, enumDevicesCallback.NativePointer, IntPtr.Zero, deviceEnumFlags); return enumDevicesCallback.DeviceInstances; }