-
Notifications
You must be signed in to change notification settings - Fork 17
/
DeviceCapabilities.cs
31 lines (28 loc) · 960 Bytes
/
DeviceCapabilities.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// UsbEject version 1.0 March 2006
// written by Simon Mourier <email: simon [underscore] mourier [at] hotmail [dot] com>
using System;
using System.Collections.Generic;
using System.Text;
namespace UsbEject.Library
{
/// <summary>
/// Contains constants for determining devices capabilities.
/// This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
/// </summary>
[Flags]
public enum DeviceCapabilities
{
Unknown = 0x00000000,
// matches cfmgr32.h CM_DEVCAP_* definitions
LockSupported = 0x00000001,
EjectSupported = 0x00000002,
Removable = 0x00000004,
DockDevice = 0x00000008,
UniqueId = 0x00000010,
SilentInstall =0x00000020,
RawDeviceOk = 0x00000040,
SurpriseRemovalOk = 0x00000080,
HardwareDisabled = 0x00000100,
NonDynamic = 0x00000200,
}
}