/// <summary> /// Retrieves a collection of objects on the device. /// </summary> /// <param name="deviceObjectTypeFlag">A filter for the returned device objects collection.</param> /// <returns>A collection of device objects matching the specified filter.</returns> public IList <DeviceObjectInstance> GetObjects(DeviceObjectTypeFlags deviceObjectTypeFlag) { var enumEffectsInFileCallback = new EnumObjectsCallback(); EnumObjects(enumEffectsInFileCallback.NativePointer, IntPtr.Zero, (int)deviceObjectTypeFlag); return(enumEffectsInFileCallback.Objects); }
/// <summary> /// Retrieves a collection of objects on the device. /// </summary> /// <param name="deviceObjectTypeFlag">A filter for the returned device objects collection.</param> /// <returns>A collection of device objects matching the specified filter.</returns> public IList<DeviceObjectInstance> GetObjects(DeviceObjectTypeFlags deviceObjectTypeFlag) { var enumEffectsInFileCallback = new EnumObjectsCallback(); EnumObjects(enumEffectsInFileCallback.NativePointer, IntPtr.Zero, (int)deviceObjectTypeFlag); return enumEffectsInFileCallback.Objects; }