using System; namespace MPF.Data { /// /// Available hashing types /// [Flags] public enum Hash { CRC = 1 << 0, MD5 = 1 << 1, SHA1 = 1 << 2, SHA256 = 1 << 3, SHA384 = 1 << 4, SHA512 = 1 << 5, // Special combinations Standard = CRC | MD5 | SHA1, All = CRC | MD5 | SHA1 | SHA256 | SHA384 | SHA512, } /// /// Drive type for dumping /// public enum InternalDriveType { Optical, Floppy, HardDisk, Removable, } /// /// Program that is being used to dump media /// public enum InternalProgram { NONE = 0, // Dumping support Aaru, DD, DiscImageCreator, // Verification support only CleanRip, DCDumper, UmdImageCreator, } /// /// Physical media types /// /// public enum PhysicalMediaType : ushort { Unknown = 0, Other = 1, TapeCartridge = 2, QICCartridge = 3, AITCartridge = 4, DTFCartridge = 5, DATCartridge = 6, EightMillimeterTapeCartridge = 7, NineteenMillimeterTapeCartridge = 8, DLTCartridge = 9, HalfInchMagneticTapeCartridge = 10, CartridgeDisk = 11, JAZDisk = 12, ZIPDisk = 13, SyQuestDisk = 14, WinchesterRemovableDisk = 15, CDROM = 16, CDROMXA = 17, CDI = 18, CDRecordable = 19, WORM = 20, MagnetoOptical = 21, DVD = 22, DVDPlusRW = 23, DVDRAM = 24, DVDROM = 25, DVDVideo = 26, Divx = 27, FloppyDiskette = 28, HardDisk = 29, MemoryCard = 30, HardCopy = 31, ClikDisk = 32, CDRW = 33, CDDA = 34, CDPlus = 35, DVDRecordable = 36, DVDMinusRW = 37, DVDAudio = 38, DVD5 = 39, DVD9 = 40, DVD10 = 41, DVD18 = 42, MagnetoOpticalRewriteable = 43, MagnetoOpticalWriteOnce = 44, MagnetoOpticalRewriteableLIMDOW = 45, PhaseChangeWriteOnce = 46, PhaseChangeRewriteable = 47, PhaseChangeDualRewriteable = 48, AblativeWriteOnce = 49, NearFieldRecording = 50, MiniQic = 51, Travan = 52, EightMillimeterMetalParticle = 53, EightMillimeterAdvancedMetalEvaporate = 54, NCTP = 55, LTOUltrium = 56, LTOAccelis = 57, NineTrackTape = 58, EighteenTrackTape = 59, ThirtySixTrackTape = 60, Magstar3590 = 61, MagstarMP = 62, D2Tape = 63, TapeDSTSmall = 64, TapeDSTMedium = 65, TapeDSTLarge = 66, } #region Win32_CDROMDrive // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-cdromdrive /// /// Availability and status of the device /// public enum Availability : ushort { Other = 1, Unknown = 2, RunningFullPower = 3, Warning = 4, InTest = 5, NotApplicable = 6, PowerOff = 7, OffLine = 8, OffDuty = 9, Degraded = 10, NotInstalled = 11, InstallError = 12, PowerSaveUnknown = 13, PowerSaveLowPowerMode = 14, PowerSaveStandby = 15, PowerCycle = 16, PowerSaveWarning = 17, Paused = 18, NotReady = 19, NotConfigured = 20, Quiesced = 21, } /// /// Optical drive capabilities /// public enum Capabilities : ushort { Unknown = 0, Other = 1, SequentialAccess = 2, RandomAccess = 3, SupportsWriting = 4, Encryption = 5, Compression = 6, SupportsRemoveableMedia = 7, ManualCleaning = 8, AutomaticCleaning = 9, SMARTNotification = 10, SupportsDualSidedMedia = 11, PredismountEjectNotRequired = 12, } /// /// File system flags /// [Flags] public enum FileSystemFlags : uint { None = 0, CaseSensitiveSearch = 1, CasePreservedNames = 2, UnicodeOnDisk = 4, PersistentACLs = 8, FileCompression = 16, VolumeQuotas = 32, SupportsSparseFiles = 64, SupportsReparsePoints = 128, SupportsRemoteStorage = 256, SupportsLongNames = 16384, VolumeIsCompressed = 32768, ReadOnlyVolume = 524288, SupportsObjectIDS = 65536, SupportsEncryption = 131072, SupportsNamedStreams = 262144, } /// /// Specific power-related capabilities of a logical device /// public enum PowerManagementCapabilities : ushort { Unknown = 0, NotSupported = 1, Disabled = 2, Enabled = 3, PowerSavingModesEnteredAutomatically = 4, PowerStateSettable = 5, PowerCyclingSupported = 6, TimedPowerOnSupported = 7, } #endregion }