public IList <DIDEVICEINSTANCE> EnumDevices(DI8DEVTYPE deviceType, DIEDFL deviceEnumFlags) { var callback = new EnumDevicesCallback(); this.EnumDevices((int)deviceType, callback.NativePointer, IntPtr.Zero, deviceEnumFlags); return(callback.DeviceInstances); }
public IList <DIDEVICEINSTANCE> EnumDevices(DI8DEVCLASS deviceClass, DIEDFL deviceEnumFlags) { var callback = new EnumDevicesCallback(); this.EnumDevices((int)deviceClass, callback.NativePointer, IntPtr.Zero, deviceEnumFlags).CheckError(); return(callback.DeviceInstances); }