Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

winioctlcon.py 35KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079
  1. ## flags, enums, guids used with DeviceIoControl from WinIoCtl.h
  2. import pywintypes
  3. from ntsecuritycon import FILE_READ_DATA, FILE_WRITE_DATA
  4. def CTL_CODE(DeviceType, Function, Method, Access):
  5. return (DeviceType << 16) | (Access << 14) | (Function << 2) | Method
  6. def DEVICE_TYPE_FROM_CTL_CODE(ctrlCode):
  7. return (ctrlCode & 0xFFFF0000) >> 16
  8. FILE_DEVICE_BEEP = 0x00000001
  9. FILE_DEVICE_CD_ROM = 0x00000002
  10. FILE_DEVICE_CD_ROM_FILE_SYSTEM = 0x00000003
  11. FILE_DEVICE_CONTROLLER = 0x00000004
  12. FILE_DEVICE_DATALINK = 0x00000005
  13. FILE_DEVICE_DFS = 0x00000006
  14. FILE_DEVICE_DISK = 0x00000007
  15. FILE_DEVICE_DISK_FILE_SYSTEM = 0x00000008
  16. FILE_DEVICE_FILE_SYSTEM = 0x00000009
  17. FILE_DEVICE_INPORT_PORT = 0x0000000A
  18. FILE_DEVICE_KEYBOARD = 0x0000000B
  19. FILE_DEVICE_MAILSLOT = 0x0000000C
  20. FILE_DEVICE_MIDI_IN = 0x0000000D
  21. FILE_DEVICE_MIDI_OUT = 0x0000000E
  22. FILE_DEVICE_MOUSE = 0x0000000F
  23. FILE_DEVICE_MULTI_UNC_PROVIDER = 0x00000010
  24. FILE_DEVICE_NAMED_PIPE = 0x00000011
  25. FILE_DEVICE_NETWORK = 0x00000012
  26. FILE_DEVICE_NETWORK_BROWSER = 0x00000013
  27. FILE_DEVICE_NETWORK_FILE_SYSTEM = 0x00000014
  28. FILE_DEVICE_NULL = 0x00000015
  29. FILE_DEVICE_PARALLEL_PORT = 0x00000016
  30. FILE_DEVICE_PHYSICAL_NETCARD = 0x00000017
  31. FILE_DEVICE_PRINTER = 0x00000018
  32. FILE_DEVICE_SCANNER = 0x00000019
  33. FILE_DEVICE_SERIAL_MOUSE_PORT = 0x0000001A
  34. FILE_DEVICE_SERIAL_PORT = 0x0000001B
  35. FILE_DEVICE_SCREEN = 0x0000001C
  36. FILE_DEVICE_SOUND = 0x0000001D
  37. FILE_DEVICE_STREAMS = 0x0000001E
  38. FILE_DEVICE_TAPE = 0x0000001F
  39. FILE_DEVICE_TAPE_FILE_SYSTEM = 0x00000020
  40. FILE_DEVICE_TRANSPORT = 0x00000021
  41. FILE_DEVICE_UNKNOWN = 0x00000022
  42. FILE_DEVICE_VIDEO = 0x00000023
  43. FILE_DEVICE_VIRTUAL_DISK = 0x00000024
  44. FILE_DEVICE_WAVE_IN = 0x00000025
  45. FILE_DEVICE_WAVE_OUT = 0x00000026
  46. FILE_DEVICE_8042_PORT = 0x00000027
  47. FILE_DEVICE_NETWORK_REDIRECTOR = 0x00000028
  48. FILE_DEVICE_BATTERY = 0x00000029
  49. FILE_DEVICE_BUS_EXTENDER = 0x0000002A
  50. FILE_DEVICE_MODEM = 0x0000002B
  51. FILE_DEVICE_VDM = 0x0000002C
  52. FILE_DEVICE_MASS_STORAGE = 0x0000002D
  53. FILE_DEVICE_SMB = 0x0000002E
  54. FILE_DEVICE_KS = 0x0000002F
  55. FILE_DEVICE_CHANGER = 0x00000030
  56. FILE_DEVICE_SMARTCARD = 0x00000031
  57. FILE_DEVICE_ACPI = 0x00000032
  58. FILE_DEVICE_DVD = 0x00000033
  59. FILE_DEVICE_FULLSCREEN_VIDEO = 0x00000034
  60. FILE_DEVICE_DFS_FILE_SYSTEM = 0x00000035
  61. FILE_DEVICE_DFS_VOLUME = 0x00000036
  62. FILE_DEVICE_SERENUM = 0x00000037
  63. FILE_DEVICE_TERMSRV = 0x00000038
  64. FILE_DEVICE_KSEC = 0x00000039
  65. FILE_DEVICE_FIPS = 0x0000003A
  66. FILE_DEVICE_INFINIBAND = 0x0000003B
  67. METHOD_BUFFERED = 0
  68. METHOD_IN_DIRECT = 1
  69. METHOD_OUT_DIRECT = 2
  70. METHOD_NEITHER = 3
  71. METHOD_DIRECT_TO_HARDWARE = METHOD_IN_DIRECT
  72. METHOD_DIRECT_FROM_HARDWARE = METHOD_OUT_DIRECT
  73. FILE_ANY_ACCESS = 0
  74. FILE_SPECIAL_ACCESS = FILE_ANY_ACCESS
  75. FILE_READ_ACCESS = 0x0001
  76. FILE_WRITE_ACCESS = 0x0002
  77. IOCTL_STORAGE_BASE = FILE_DEVICE_MASS_STORAGE
  78. RECOVERED_WRITES_VALID = 0x00000001
  79. UNRECOVERED_WRITES_VALID = 0x00000002
  80. RECOVERED_READS_VALID = 0x00000004
  81. UNRECOVERED_READS_VALID = 0x00000008
  82. WRITE_COMPRESSION_INFO_VALID = 0x00000010
  83. READ_COMPRESSION_INFO_VALID = 0x00000020
  84. TAPE_RETURN_STATISTICS = 0
  85. TAPE_RETURN_ENV_INFO = 1
  86. TAPE_RESET_STATISTICS = 2
  87. MEDIA_ERASEABLE = 0x00000001
  88. MEDIA_WRITE_ONCE = 0x00000002
  89. MEDIA_READ_ONLY = 0x00000004
  90. MEDIA_READ_WRITE = 0x00000008
  91. MEDIA_WRITE_PROTECTED = 0x00000100
  92. MEDIA_CURRENTLY_MOUNTED = 0x80000000
  93. IOCTL_DISK_BASE = FILE_DEVICE_DISK
  94. PARTITION_ENTRY_UNUSED = 0x00
  95. PARTITION_FAT_12 = 0x01
  96. PARTITION_XENIX_1 = 0x02
  97. PARTITION_XENIX_2 = 0x03
  98. PARTITION_FAT_16 = 0x04
  99. PARTITION_EXTENDED = 0x05
  100. PARTITION_HUGE = 0x06
  101. PARTITION_IFS = 0x07
  102. PARTITION_OS2BOOTMGR = 0x0A
  103. PARTITION_FAT32 = 0x0B
  104. PARTITION_FAT32_XINT13 = 0x0C
  105. PARTITION_XINT13 = 0x0E
  106. PARTITION_XINT13_EXTENDED = 0x0F
  107. PARTITION_PREP = 0x41
  108. PARTITION_LDM = 0x42
  109. PARTITION_UNIX = 0x63
  110. VALID_NTFT = 0xC0
  111. PARTITION_NTFT = 0x80
  112. GPT_ATTRIBUTE_PLATFORM_REQUIRED = 0x0000000000000001
  113. GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = 0x8000000000000000
  114. GPT_BASIC_DATA_ATTRIBUTE_HIDDEN = 0x4000000000000000
  115. GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY = 0x2000000000000000
  116. GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY = 0x1000000000000000
  117. HIST_NO_OF_BUCKETS = 24
  118. DISK_LOGGING_START = 0
  119. DISK_LOGGING_STOP = 1
  120. DISK_LOGGING_DUMP = 2
  121. DISK_BINNING = 3
  122. CAP_ATA_ID_CMD = 1
  123. CAP_ATAPI_ID_CMD = 2
  124. CAP_SMART_CMD = 4
  125. ATAPI_ID_CMD = 0xA1
  126. ID_CMD = 0xEC
  127. SMART_CMD = 0xB0
  128. SMART_CYL_LOW = 0x4F
  129. SMART_CYL_HI = 0xC2
  130. SMART_NO_ERROR = 0
  131. SMART_IDE_ERROR = 1
  132. SMART_INVALID_FLAG = 2
  133. SMART_INVALID_COMMAND = 3
  134. SMART_INVALID_BUFFER = 4
  135. SMART_INVALID_DRIVE = 5
  136. SMART_INVALID_IOCTL = 6
  137. SMART_ERROR_NO_MEM = 7
  138. SMART_INVALID_REGISTER = 8
  139. SMART_NOT_SUPPORTED = 9
  140. SMART_NO_IDE_DEVICE = 10
  141. SMART_OFFLINE_ROUTINE_OFFLINE = 0
  142. SMART_SHORT_SELFTEST_OFFLINE = 1
  143. SMART_EXTENDED_SELFTEST_OFFLINE = 2
  144. SMART_ABORT_OFFLINE_SELFTEST = 127
  145. SMART_SHORT_SELFTEST_CAPTIVE = 129
  146. SMART_EXTENDED_SELFTEST_CAPTIVE = 130
  147. READ_ATTRIBUTE_BUFFER_SIZE = 512
  148. IDENTIFY_BUFFER_SIZE = 512
  149. READ_THRESHOLD_BUFFER_SIZE = 512
  150. SMART_LOG_SECTOR_SIZE = 512
  151. READ_ATTRIBUTES = 0xD0
  152. READ_THRESHOLDS = 0xD1
  153. ENABLE_DISABLE_AUTOSAVE = 0xD2
  154. SAVE_ATTRIBUTE_VALUES = 0xD3
  155. EXECUTE_OFFLINE_DIAGS = 0xD4
  156. SMART_READ_LOG = 0xD5
  157. SMART_WRITE_LOG = 0xD6
  158. ENABLE_SMART = 0xD8
  159. DISABLE_SMART = 0xD9
  160. RETURN_SMART_STATUS = 0xDA
  161. ENABLE_DISABLE_AUTO_OFFLINE = 0xDB
  162. IOCTL_CHANGER_BASE = FILE_DEVICE_CHANGER
  163. MAX_VOLUME_ID_SIZE = 36
  164. MAX_VOLUME_TEMPLATE_SIZE = 40
  165. VENDOR_ID_LENGTH = 8
  166. PRODUCT_ID_LENGTH = 16
  167. REVISION_LENGTH = 4
  168. SERIAL_NUMBER_LENGTH = 32
  169. CHANGER_BAR_CODE_SCANNER_INSTALLED = 0x00000001
  170. CHANGER_INIT_ELEM_STAT_WITH_RANGE = 0x00000002
  171. CHANGER_CLOSE_IEPORT = 0x00000004
  172. CHANGER_OPEN_IEPORT = 0x00000008
  173. CHANGER_STATUS_NON_VOLATILE = 0x00000010
  174. CHANGER_EXCHANGE_MEDIA = 0x00000020
  175. CHANGER_CLEANER_SLOT = 0x00000040
  176. CHANGER_LOCK_UNLOCK = 0x00000080
  177. CHANGER_CARTRIDGE_MAGAZINE = 0x00000100
  178. CHANGER_MEDIUM_FLIP = 0x00000200
  179. CHANGER_POSITION_TO_ELEMENT = 0x00000400
  180. CHANGER_REPORT_IEPORT_STATE = 0x00000800
  181. CHANGER_STORAGE_DRIVE = 0x00001000
  182. CHANGER_STORAGE_IEPORT = 0x00002000
  183. CHANGER_STORAGE_SLOT = 0x00004000
  184. CHANGER_STORAGE_TRANSPORT = 0x00008000
  185. CHANGER_DRIVE_CLEANING_REQUIRED = 0x00010000
  186. CHANGER_PREDISMOUNT_EJECT_REQUIRED = 0x00020000
  187. CHANGER_CLEANER_ACCESS_NOT_VALID = 0x00040000
  188. CHANGER_PREMOUNT_EJECT_REQUIRED = 0x00080000
  189. CHANGER_VOLUME_IDENTIFICATION = 0x00100000
  190. CHANGER_VOLUME_SEARCH = 0x00200000
  191. CHANGER_VOLUME_ASSERT = 0x00400000
  192. CHANGER_VOLUME_REPLACE = 0x00800000
  193. CHANGER_VOLUME_UNDEFINE = 0x01000000
  194. CHANGER_SERIAL_NUMBER_VALID = 0x04000000
  195. CHANGER_DEVICE_REINITIALIZE_CAPABLE = 0x08000000
  196. CHANGER_KEYPAD_ENABLE_DISABLE = 0x10000000
  197. CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS = 0x20000000
  198. CHANGER_RESERVED_BIT = 0x80000000
  199. CHANGER_PREDISMOUNT_ALIGN_TO_SLOT = 0x80000001
  200. CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE = 0x80000002
  201. CHANGER_CLEANER_AUTODISMOUNT = 0x80000004
  202. CHANGER_TRUE_EXCHANGE_CAPABLE = 0x80000008
  203. CHANGER_SLOTS_USE_TRAYS = 0x80000010
  204. CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR = 0x80000020
  205. CHANGER_CLEANER_OPS_NOT_SUPPORTED = 0x80000040
  206. CHANGER_IEPORT_USER_CONTROL_OPEN = 0x80000080
  207. CHANGER_IEPORT_USER_CONTROL_CLOSE = 0x80000100
  208. CHANGER_MOVE_EXTENDS_IEPORT = 0x80000200
  209. CHANGER_MOVE_RETRACTS_IEPORT = 0x80000400
  210. CHANGER_TO_TRANSPORT = 0x01
  211. CHANGER_TO_SLOT = 0x02
  212. CHANGER_TO_IEPORT = 0x04
  213. CHANGER_TO_DRIVE = 0x08
  214. LOCK_UNLOCK_IEPORT = 0x01
  215. LOCK_UNLOCK_DOOR = 0x02
  216. LOCK_UNLOCK_KEYPAD = 0x04
  217. LOCK_ELEMENT = 0
  218. UNLOCK_ELEMENT = 1
  219. EXTEND_IEPORT = 2
  220. RETRACT_IEPORT = 3
  221. ELEMENT_STATUS_FULL = 0x00000001
  222. ELEMENT_STATUS_IMPEXP = 0x00000002
  223. ELEMENT_STATUS_EXCEPT = 0x00000004
  224. ELEMENT_STATUS_ACCESS = 0x00000008
  225. ELEMENT_STATUS_EXENAB = 0x00000010
  226. ELEMENT_STATUS_INENAB = 0x00000020
  227. ELEMENT_STATUS_PRODUCT_DATA = 0x00000040
  228. ELEMENT_STATUS_LUN_VALID = 0x00001000
  229. ELEMENT_STATUS_ID_VALID = 0x00002000
  230. ELEMENT_STATUS_NOT_BUS = 0x00008000
  231. ELEMENT_STATUS_INVERT = 0x00400000
  232. ELEMENT_STATUS_SVALID = 0x00800000
  233. ELEMENT_STATUS_PVOLTAG = 0x10000000
  234. ELEMENT_STATUS_AVOLTAG = 0x20000000
  235. ERROR_LABEL_UNREADABLE = 0x00000001
  236. ERROR_LABEL_QUESTIONABLE = 0x00000002
  237. ERROR_SLOT_NOT_PRESENT = 0x00000004
  238. ERROR_DRIVE_NOT_INSTALLED = 0x00000008
  239. ERROR_TRAY_MALFUNCTION = 0x00000010
  240. ERROR_INIT_STATUS_NEEDED = 0x00000011
  241. ERROR_UNHANDLED_ERROR = 0xFFFFFFFF
  242. SEARCH_ALL = 0x0
  243. SEARCH_PRIMARY = 0x1
  244. SEARCH_ALTERNATE = 0x2
  245. SEARCH_ALL_NO_SEQ = 0x4
  246. SEARCH_PRI_NO_SEQ = 0x5
  247. SEARCH_ALT_NO_SEQ = 0x6
  248. ASSERT_PRIMARY = 0x8
  249. ASSERT_ALTERNATE = 0x9
  250. REPLACE_PRIMARY = 0xA
  251. REPLACE_ALTERNATE = 0xB
  252. UNDEFINE_PRIMARY = 0xC
  253. UNDEFINE_ALTERNATE = 0xD
  254. USN_PAGE_SIZE = 0x1000
  255. USN_REASON_DATA_OVERWRITE = 0x00000001
  256. USN_REASON_DATA_EXTEND = 0x00000002
  257. USN_REASON_DATA_TRUNCATION = 0x00000004
  258. USN_REASON_NAMED_DATA_OVERWRITE = 0x00000010
  259. USN_REASON_NAMED_DATA_EXTEND = 0x00000020
  260. USN_REASON_NAMED_DATA_TRUNCATION = 0x00000040
  261. USN_REASON_FILE_CREATE = 0x00000100
  262. USN_REASON_FILE_DELETE = 0x00000200
  263. USN_REASON_EA_CHANGE = 0x00000400
  264. USN_REASON_SECURITY_CHANGE = 0x00000800
  265. USN_REASON_RENAME_OLD_NAME = 0x00001000
  266. USN_REASON_RENAME_NEW_NAME = 0x00002000
  267. USN_REASON_INDEXABLE_CHANGE = 0x00004000
  268. USN_REASON_BASIC_INFO_CHANGE = 0x00008000
  269. USN_REASON_HARD_LINK_CHANGE = 0x00010000
  270. USN_REASON_COMPRESSION_CHANGE = 0x00020000
  271. USN_REASON_ENCRYPTION_CHANGE = 0x00040000
  272. USN_REASON_OBJECT_ID_CHANGE = 0x00080000
  273. USN_REASON_REPARSE_POINT_CHANGE = 0x00100000
  274. USN_REASON_STREAM_CHANGE = 0x00200000
  275. USN_REASON_TRANSACTED_CHANGE = 0x00400000
  276. USN_REASON_CLOSE = 0x80000000
  277. USN_DELETE_FLAG_DELETE = 0x00000001
  278. USN_DELETE_FLAG_NOTIFY = 0x00000002
  279. USN_DELETE_VALID_FLAGS = 0x00000003
  280. USN_SOURCE_DATA_MANAGEMENT = 0x00000001
  281. USN_SOURCE_AUXILIARY_DATA = 0x00000002
  282. USN_SOURCE_REPLICATION_MANAGEMENT = 0x00000004
  283. MARK_HANDLE_PROTECT_CLUSTERS = 1
  284. MARK_HANDLE_TXF_SYSTEM_LOG = 4
  285. MARK_HANDLE_NOT_TXF_SYSTEM_LOG = 8
  286. VOLUME_IS_DIRTY = 0x00000001
  287. VOLUME_UPGRADE_SCHEDULED = 0x00000002
  288. VOLUME_SESSION_OPEN = 4
  289. FILE_PREFETCH_TYPE_FOR_CREATE = 1
  290. FILE_PREFETCH_TYPE_FOR_DIRENUM = 2
  291. FILE_PREFETCH_TYPE_FOR_CREATE_EX = 3
  292. FILE_PREFETCH_TYPE_FOR_DIRENUM_EX = 4
  293. FILE_PREFETCH_TYPE_MAX = 4
  294. FILESYSTEM_STATISTICS_TYPE_NTFS = 1
  295. FILESYSTEM_STATISTICS_TYPE_FAT = 2
  296. FILE_SET_ENCRYPTION = 0x00000001
  297. FILE_CLEAR_ENCRYPTION = 0x00000002
  298. STREAM_SET_ENCRYPTION = 0x00000003
  299. STREAM_CLEAR_ENCRYPTION = 0x00000004
  300. MAXIMUM_ENCRYPTION_VALUE = 0x00000004
  301. ENCRYPTION_FORMAT_DEFAULT = 0x01
  302. COMPRESSION_FORMAT_SPARSE = 0x4000
  303. COPYFILE_SIS_LINK = 0x0001
  304. COPYFILE_SIS_REPLACE = 0x0002
  305. COPYFILE_SIS_FLAGS = 0x0003
  306. WMI_DISK_GEOMETRY_GUID = pywintypes.IID("{25007F51-57C2-11D1-A528-00A0C9062910}")
  307. GUID_DEVINTERFACE_CDROM = pywintypes.IID("{53F56308-B6BF-11D0-94F2-00A0C91EFB8B}")
  308. GUID_DEVINTERFACE_FLOPPY = pywintypes.IID("{53F56311-B6BF-11D0-94F2-00A0C91EFB8B}")
  309. GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR = pywintypes.IID(
  310. "{4D36E978-E325-11CE-BFC1-08002BE10318}"
  311. )
  312. GUID_DEVINTERFACE_COMPORT = pywintypes.IID("{86E0D1E0-8089-11D0-9CE4-08003E301F73}")
  313. GUID_DEVINTERFACE_DISK = pywintypes.IID("{53F56307-B6BF-11D0-94F2-00A0C91EFB8B}")
  314. GUID_DEVINTERFACE_STORAGEPORT = pywintypes.IID("{2ACCFE60-C130-11D2-B082-00A0C91EFB8B}")
  315. GUID_DEVINTERFACE_CDCHANGER = pywintypes.IID("{53F56312-B6BF-11D0-94F2-00A0C91EFB8B}")
  316. GUID_DEVINTERFACE_PARTITION = pywintypes.IID("{53F5630A-B6BF-11D0-94F2-00A0C91EFB8B}")
  317. GUID_DEVINTERFACE_VOLUME = pywintypes.IID("{53F5630D-B6BF-11D0-94F2-00A0C91EFB8B}")
  318. GUID_DEVINTERFACE_WRITEONCEDISK = pywintypes.IID(
  319. "{53F5630C-B6BF-11D0-94F2-00A0C91EFB8B}"
  320. )
  321. GUID_DEVINTERFACE_TAPE = pywintypes.IID("{53F5630B-B6BF-11D0-94F2-00A0C91EFB8B}")
  322. GUID_DEVINTERFACE_MEDIUMCHANGER = pywintypes.IID(
  323. "{53F56310-B6BF-11D0-94F2-00A0C91EFB8B}"
  324. )
  325. GUID_SERENUM_BUS_ENUMERATOR = GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR
  326. GUID_CLASS_COMPORT = GUID_DEVINTERFACE_COMPORT
  327. DiskClassGuid = GUID_DEVINTERFACE_DISK
  328. CdRomClassGuid = GUID_DEVINTERFACE_CDROM
  329. PartitionClassGuid = GUID_DEVINTERFACE_PARTITION
  330. TapeClassGuid = GUID_DEVINTERFACE_TAPE
  331. WriteOnceDiskClassGuid = GUID_DEVINTERFACE_WRITEONCEDISK
  332. VolumeClassGuid = GUID_DEVINTERFACE_VOLUME
  333. MediumChangerClassGuid = GUID_DEVINTERFACE_MEDIUMCHANGER
  334. FloppyClassGuid = GUID_DEVINTERFACE_FLOPPY
  335. CdChangerClassGuid = GUID_DEVINTERFACE_CDCHANGER
  336. StoragePortClassGuid = GUID_DEVINTERFACE_STORAGEPORT
  337. IOCTL_STORAGE_CHECK_VERIFY = CTL_CODE(
  338. IOCTL_STORAGE_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS
  339. )
  340. IOCTL_STORAGE_CHECK_VERIFY2 = CTL_CODE(
  341. IOCTL_STORAGE_BASE, 0x0200, METHOD_BUFFERED, FILE_ANY_ACCESS
  342. )
  343. IOCTL_STORAGE_MEDIA_REMOVAL = CTL_CODE(
  344. IOCTL_STORAGE_BASE, 0x0201, METHOD_BUFFERED, FILE_READ_ACCESS
  345. )
  346. IOCTL_STORAGE_EJECT_MEDIA = CTL_CODE(
  347. IOCTL_STORAGE_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS
  348. )
  349. IOCTL_STORAGE_LOAD_MEDIA = CTL_CODE(
  350. IOCTL_STORAGE_BASE, 0x0203, METHOD_BUFFERED, FILE_READ_ACCESS
  351. )
  352. IOCTL_STORAGE_LOAD_MEDIA2 = CTL_CODE(
  353. IOCTL_STORAGE_BASE, 0x0203, METHOD_BUFFERED, FILE_ANY_ACCESS
  354. )
  355. IOCTL_STORAGE_RESERVE = CTL_CODE(
  356. IOCTL_STORAGE_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS
  357. )
  358. IOCTL_STORAGE_RELEASE = CTL_CODE(
  359. IOCTL_STORAGE_BASE, 0x0205, METHOD_BUFFERED, FILE_READ_ACCESS
  360. )
  361. IOCTL_STORAGE_FIND_NEW_DEVICES = CTL_CODE(
  362. IOCTL_STORAGE_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS
  363. )
  364. IOCTL_STORAGE_EJECTION_CONTROL = CTL_CODE(
  365. IOCTL_STORAGE_BASE, 0x0250, METHOD_BUFFERED, FILE_ANY_ACCESS
  366. )
  367. IOCTL_STORAGE_MCN_CONTROL = CTL_CODE(
  368. IOCTL_STORAGE_BASE, 0x0251, METHOD_BUFFERED, FILE_ANY_ACCESS
  369. )
  370. IOCTL_STORAGE_GET_MEDIA_TYPES = CTL_CODE(
  371. IOCTL_STORAGE_BASE, 0x0300, METHOD_BUFFERED, FILE_ANY_ACCESS
  372. )
  373. IOCTL_STORAGE_GET_MEDIA_TYPES_EX = CTL_CODE(
  374. IOCTL_STORAGE_BASE, 0x0301, METHOD_BUFFERED, FILE_ANY_ACCESS
  375. )
  376. IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER = CTL_CODE(
  377. IOCTL_STORAGE_BASE, 0x0304, METHOD_BUFFERED, FILE_ANY_ACCESS
  378. )
  379. IOCTL_STORAGE_GET_HOTPLUG_INFO = CTL_CODE(
  380. IOCTL_STORAGE_BASE, 0x0305, METHOD_BUFFERED, FILE_ANY_ACCESS
  381. )
  382. IOCTL_STORAGE_SET_HOTPLUG_INFO = CTL_CODE(
  383. IOCTL_STORAGE_BASE, 0x0306, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  384. )
  385. IOCTL_STORAGE_RESET_BUS = CTL_CODE(
  386. IOCTL_STORAGE_BASE, 0x0400, METHOD_BUFFERED, FILE_READ_ACCESS
  387. )
  388. IOCTL_STORAGE_RESET_DEVICE = CTL_CODE(
  389. IOCTL_STORAGE_BASE, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS
  390. )
  391. IOCTL_STORAGE_BREAK_RESERVATION = CTL_CODE(
  392. IOCTL_STORAGE_BASE, 0x0405, METHOD_BUFFERED, FILE_READ_ACCESS
  393. )
  394. IOCTL_STORAGE_GET_DEVICE_NUMBER = CTL_CODE(
  395. IOCTL_STORAGE_BASE, 0x0420, METHOD_BUFFERED, FILE_ANY_ACCESS
  396. )
  397. IOCTL_STORAGE_PREDICT_FAILURE = CTL_CODE(
  398. IOCTL_STORAGE_BASE, 0x0440, METHOD_BUFFERED, FILE_ANY_ACCESS
  399. )
  400. IOCTL_DISK_GET_DRIVE_GEOMETRY = CTL_CODE(
  401. IOCTL_DISK_BASE, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS
  402. )
  403. IOCTL_DISK_GET_PARTITION_INFO = CTL_CODE(
  404. IOCTL_DISK_BASE, 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS
  405. )
  406. IOCTL_DISK_SET_PARTITION_INFO = CTL_CODE(
  407. IOCTL_DISK_BASE, 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  408. )
  409. IOCTL_DISK_GET_DRIVE_LAYOUT = CTL_CODE(
  410. IOCTL_DISK_BASE, 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS
  411. )
  412. IOCTL_DISK_SET_DRIVE_LAYOUT = CTL_CODE(
  413. IOCTL_DISK_BASE, 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  414. )
  415. IOCTL_DISK_VERIFY = CTL_CODE(IOCTL_DISK_BASE, 0x0005, METHOD_BUFFERED, FILE_ANY_ACCESS)
  416. IOCTL_DISK_FORMAT_TRACKS = CTL_CODE(
  417. IOCTL_DISK_BASE, 0x0006, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  418. )
  419. IOCTL_DISK_REASSIGN_BLOCKS = CTL_CODE(
  420. IOCTL_DISK_BASE, 0x0007, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  421. )
  422. IOCTL_DISK_PERFORMANCE = CTL_CODE(
  423. IOCTL_DISK_BASE, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS
  424. )
  425. IOCTL_DISK_IS_WRITABLE = CTL_CODE(
  426. IOCTL_DISK_BASE, 0x0009, METHOD_BUFFERED, FILE_ANY_ACCESS
  427. )
  428. IOCTL_DISK_LOGGING = CTL_CODE(IOCTL_DISK_BASE, 0x000A, METHOD_BUFFERED, FILE_ANY_ACCESS)
  429. IOCTL_DISK_FORMAT_TRACKS_EX = CTL_CODE(
  430. IOCTL_DISK_BASE, 0x000B, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  431. )
  432. IOCTL_DISK_HISTOGRAM_STRUCTURE = CTL_CODE(
  433. IOCTL_DISK_BASE, 0x000C, METHOD_BUFFERED, FILE_ANY_ACCESS
  434. )
  435. IOCTL_DISK_HISTOGRAM_DATA = CTL_CODE(
  436. IOCTL_DISK_BASE, 0x000D, METHOD_BUFFERED, FILE_ANY_ACCESS
  437. )
  438. IOCTL_DISK_HISTOGRAM_RESET = CTL_CODE(
  439. IOCTL_DISK_BASE, 0x000E, METHOD_BUFFERED, FILE_ANY_ACCESS
  440. )
  441. IOCTL_DISK_REQUEST_STRUCTURE = CTL_CODE(
  442. IOCTL_DISK_BASE, 0x000F, METHOD_BUFFERED, FILE_ANY_ACCESS
  443. )
  444. IOCTL_DISK_REQUEST_DATA = CTL_CODE(
  445. IOCTL_DISK_BASE, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS
  446. )
  447. IOCTL_DISK_PERFORMANCE_OFF = CTL_CODE(
  448. IOCTL_DISK_BASE, 0x0018, METHOD_BUFFERED, FILE_ANY_ACCESS
  449. )
  450. IOCTL_DISK_CONTROLLER_NUMBER = CTL_CODE(
  451. IOCTL_DISK_BASE, 0x0011, METHOD_BUFFERED, FILE_ANY_ACCESS
  452. )
  453. SMART_GET_VERSION = CTL_CODE(IOCTL_DISK_BASE, 0x0020, METHOD_BUFFERED, FILE_READ_ACCESS)
  454. SMART_SEND_DRIVE_COMMAND = CTL_CODE(
  455. IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  456. )
  457. SMART_RCV_DRIVE_DATA = CTL_CODE(
  458. IOCTL_DISK_BASE, 0x0022, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  459. )
  460. IOCTL_DISK_GET_PARTITION_INFO_EX = CTL_CODE(
  461. IOCTL_DISK_BASE, 0x0012, METHOD_BUFFERED, FILE_ANY_ACCESS
  462. )
  463. IOCTL_DISK_SET_PARTITION_INFO_EX = CTL_CODE(
  464. IOCTL_DISK_BASE, 0x0013, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  465. )
  466. IOCTL_DISK_GET_DRIVE_LAYOUT_EX = CTL_CODE(
  467. IOCTL_DISK_BASE, 0x0014, METHOD_BUFFERED, FILE_ANY_ACCESS
  468. )
  469. IOCTL_DISK_SET_DRIVE_LAYOUT_EX = CTL_CODE(
  470. IOCTL_DISK_BASE, 0x0015, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  471. )
  472. IOCTL_DISK_CREATE_DISK = CTL_CODE(
  473. IOCTL_DISK_BASE, 0x0016, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  474. )
  475. IOCTL_DISK_GET_LENGTH_INFO = CTL_CODE(
  476. IOCTL_DISK_BASE, 0x0017, METHOD_BUFFERED, FILE_READ_ACCESS
  477. )
  478. IOCTL_DISK_GET_DRIVE_GEOMETRY_EX = CTL_CODE(
  479. IOCTL_DISK_BASE, 0x0028, METHOD_BUFFERED, FILE_ANY_ACCESS
  480. )
  481. IOCTL_DISK_REASSIGN_BLOCKS_EX = CTL_CODE(
  482. IOCTL_DISK_BASE, 0x0029, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  483. )
  484. IOCTL_DISK_UPDATE_DRIVE_SIZE = CTL_CODE(
  485. IOCTL_DISK_BASE, 0x0032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  486. )
  487. IOCTL_DISK_GROW_PARTITION = CTL_CODE(
  488. IOCTL_DISK_BASE, 0x0034, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  489. )
  490. IOCTL_DISK_GET_CACHE_INFORMATION = CTL_CODE(
  491. IOCTL_DISK_BASE, 0x0035, METHOD_BUFFERED, FILE_READ_ACCESS
  492. )
  493. IOCTL_DISK_SET_CACHE_INFORMATION = CTL_CODE(
  494. IOCTL_DISK_BASE, 0x0036, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  495. )
  496. OBSOLETE_IOCTL_STORAGE_RESET_BUS = CTL_CODE(
  497. IOCTL_STORAGE_BASE, 0x0400, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  498. )
  499. OBSOLETE_IOCTL_STORAGE_RESET_DEVICE = CTL_CODE(
  500. IOCTL_STORAGE_BASE, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  501. )
  502. ## the original define no longer exists in winioctl.h
  503. OBSOLETE_DISK_GET_WRITE_CACHE_STATE = CTL_CODE(
  504. IOCTL_DISK_BASE, 0x0037, METHOD_BUFFERED, FILE_READ_ACCESS
  505. )
  506. IOCTL_DISK_GET_WRITE_CACHE_STATE = OBSOLETE_DISK_GET_WRITE_CACHE_STATE
  507. IOCTL_DISK_DELETE_DRIVE_LAYOUT = CTL_CODE(
  508. IOCTL_DISK_BASE, 0x0040, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  509. )
  510. IOCTL_DISK_UPDATE_PROPERTIES = CTL_CODE(
  511. IOCTL_DISK_BASE, 0x0050, METHOD_BUFFERED, FILE_ANY_ACCESS
  512. )
  513. IOCTL_DISK_FORMAT_DRIVE = CTL_CODE(
  514. IOCTL_DISK_BASE, 0x00F3, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  515. )
  516. IOCTL_DISK_SENSE_DEVICE = CTL_CODE(
  517. IOCTL_DISK_BASE, 0x00F8, METHOD_BUFFERED, FILE_ANY_ACCESS
  518. )
  519. IOCTL_DISK_CHECK_VERIFY = CTL_CODE(
  520. IOCTL_DISK_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS
  521. )
  522. IOCTL_DISK_MEDIA_REMOVAL = CTL_CODE(
  523. IOCTL_DISK_BASE, 0x0201, METHOD_BUFFERED, FILE_READ_ACCESS
  524. )
  525. IOCTL_DISK_EJECT_MEDIA = CTL_CODE(
  526. IOCTL_DISK_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS
  527. )
  528. IOCTL_DISK_LOAD_MEDIA = CTL_CODE(
  529. IOCTL_DISK_BASE, 0x0203, METHOD_BUFFERED, FILE_READ_ACCESS
  530. )
  531. IOCTL_DISK_RESERVE = CTL_CODE(
  532. IOCTL_DISK_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS
  533. )
  534. IOCTL_DISK_RELEASE = CTL_CODE(
  535. IOCTL_DISK_BASE, 0x0205, METHOD_BUFFERED, FILE_READ_ACCESS
  536. )
  537. IOCTL_DISK_FIND_NEW_DEVICES = CTL_CODE(
  538. IOCTL_DISK_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS
  539. )
  540. IOCTL_DISK_GET_MEDIA_TYPES = CTL_CODE(
  541. IOCTL_DISK_BASE, 0x0300, METHOD_BUFFERED, FILE_ANY_ACCESS
  542. )
  543. DISK_HISTOGRAM_SIZE = 72
  544. HISTOGRAM_BUCKET_SIZE = 8
  545. IOCTL_CHANGER_GET_PARAMETERS = CTL_CODE(
  546. IOCTL_CHANGER_BASE, 0x0000, METHOD_BUFFERED, FILE_READ_ACCESS
  547. )
  548. IOCTL_CHANGER_GET_STATUS = CTL_CODE(
  549. IOCTL_CHANGER_BASE, 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS
  550. )
  551. IOCTL_CHANGER_GET_PRODUCT_DATA = CTL_CODE(
  552. IOCTL_CHANGER_BASE, 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS
  553. )
  554. IOCTL_CHANGER_SET_ACCESS = CTL_CODE(
  555. IOCTL_CHANGER_BASE, 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  556. )
  557. IOCTL_CHANGER_GET_ELEMENT_STATUS = CTL_CODE(
  558. IOCTL_CHANGER_BASE, 0x0005, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  559. )
  560. IOCTL_CHANGER_INITIALIZE_ELEMENT_STATUS = CTL_CODE(
  561. IOCTL_CHANGER_BASE, 0x0006, METHOD_BUFFERED, FILE_READ_ACCESS
  562. )
  563. IOCTL_CHANGER_SET_POSITION = CTL_CODE(
  564. IOCTL_CHANGER_BASE, 0x0007, METHOD_BUFFERED, FILE_READ_ACCESS
  565. )
  566. IOCTL_CHANGER_EXCHANGE_MEDIUM = CTL_CODE(
  567. IOCTL_CHANGER_BASE, 0x0008, METHOD_BUFFERED, FILE_READ_ACCESS
  568. )
  569. IOCTL_CHANGER_MOVE_MEDIUM = CTL_CODE(
  570. IOCTL_CHANGER_BASE, 0x0009, METHOD_BUFFERED, FILE_READ_ACCESS
  571. )
  572. IOCTL_CHANGER_REINITIALIZE_TRANSPORT = CTL_CODE(
  573. IOCTL_CHANGER_BASE, 0x000A, METHOD_BUFFERED, FILE_READ_ACCESS
  574. )
  575. IOCTL_CHANGER_QUERY_VOLUME_TAGS = CTL_CODE(
  576. IOCTL_CHANGER_BASE, 0x000B, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  577. )
  578. IOCTL_SERIAL_LSRMST_INSERT = CTL_CODE(
  579. FILE_DEVICE_SERIAL_PORT, 31, METHOD_BUFFERED, FILE_ANY_ACCESS
  580. )
  581. IOCTL_SERENUM_EXPOSE_HARDWARE = CTL_CODE(
  582. FILE_DEVICE_SERENUM, 128, METHOD_BUFFERED, FILE_ANY_ACCESS
  583. )
  584. IOCTL_SERENUM_REMOVE_HARDWARE = CTL_CODE(
  585. FILE_DEVICE_SERENUM, 129, METHOD_BUFFERED, FILE_ANY_ACCESS
  586. )
  587. IOCTL_SERENUM_PORT_DESC = CTL_CODE(
  588. FILE_DEVICE_SERENUM, 130, METHOD_BUFFERED, FILE_ANY_ACCESS
  589. )
  590. IOCTL_SERENUM_GET_PORT_NAME = CTL_CODE(
  591. FILE_DEVICE_SERENUM, 131, METHOD_BUFFERED, FILE_ANY_ACCESS
  592. )
  593. ## ??? can't find where FILE_DEVICE_AVIO is defined ???
  594. ## IOCTL_AVIO_ALLOCATE_STREAM = CTL_CODE(FILE_DEVICE_AVIO, 1, METHOD_BUFFERED, FILE_SPECIAL_ACCESS)
  595. ## IOCTL_AVIO_FREE_STREAM = CTL_CODE(FILE_DEVICE_AVIO, 2, METHOD_BUFFERED, FILE_SPECIAL_ACCESS)
  596. ## IOCTL_AVIO_MODIFY_STREAM = CTL_CODE(FILE_DEVICE_AVIO, 3, METHOD_BUFFERED, FILE_SPECIAL_ACCESS)
  597. SERIAL_LSRMST_ESCAPE = 0x00
  598. SERIAL_LSRMST_LSR_DATA = 0x01
  599. SERIAL_LSRMST_LSR_NODATA = 0x02
  600. SERIAL_LSRMST_MST = 0x03
  601. SERIAL_IOC_FCR_FIFO_ENABLE = 0x00000001
  602. SERIAL_IOC_FCR_RCVR_RESET = 0x00000002
  603. SERIAL_IOC_FCR_XMIT_RESET = 0x00000004
  604. SERIAL_IOC_FCR_DMA_MODE = 0x00000008
  605. SERIAL_IOC_FCR_RES1 = 0x00000010
  606. SERIAL_IOC_FCR_RES2 = 0x00000020
  607. SERIAL_IOC_FCR_RCVR_TRIGGER_LSB = 0x00000040
  608. SERIAL_IOC_FCR_RCVR_TRIGGER_MSB = 0x00000080
  609. SERIAL_IOC_MCR_DTR = 0x00000001
  610. SERIAL_IOC_MCR_RTS = 0x00000002
  611. SERIAL_IOC_MCR_OUT1 = 0x00000004
  612. SERIAL_IOC_MCR_OUT2 = 0x00000008
  613. SERIAL_IOC_MCR_LOOP = 0x00000010
  614. FSCTL_REQUEST_OPLOCK_LEVEL_1 = CTL_CODE(
  615. FILE_DEVICE_FILE_SYSTEM, 0, METHOD_BUFFERED, FILE_ANY_ACCESS
  616. )
  617. FSCTL_REQUEST_OPLOCK_LEVEL_2 = CTL_CODE(
  618. FILE_DEVICE_FILE_SYSTEM, 1, METHOD_BUFFERED, FILE_ANY_ACCESS
  619. )
  620. FSCTL_REQUEST_BATCH_OPLOCK = CTL_CODE(
  621. FILE_DEVICE_FILE_SYSTEM, 2, METHOD_BUFFERED, FILE_ANY_ACCESS
  622. )
  623. FSCTL_OPLOCK_BREAK_ACKNOWLEDGE = CTL_CODE(
  624. FILE_DEVICE_FILE_SYSTEM, 3, METHOD_BUFFERED, FILE_ANY_ACCESS
  625. )
  626. FSCTL_OPBATCH_ACK_CLOSE_PENDING = CTL_CODE(
  627. FILE_DEVICE_FILE_SYSTEM, 4, METHOD_BUFFERED, FILE_ANY_ACCESS
  628. )
  629. FSCTL_OPLOCK_BREAK_NOTIFY = CTL_CODE(
  630. FILE_DEVICE_FILE_SYSTEM, 5, METHOD_BUFFERED, FILE_ANY_ACCESS
  631. )
  632. FSCTL_LOCK_VOLUME = CTL_CODE(
  633. FILE_DEVICE_FILE_SYSTEM, 6, METHOD_BUFFERED, FILE_ANY_ACCESS
  634. )
  635. FSCTL_UNLOCK_VOLUME = CTL_CODE(
  636. FILE_DEVICE_FILE_SYSTEM, 7, METHOD_BUFFERED, FILE_ANY_ACCESS
  637. )
  638. FSCTL_DISMOUNT_VOLUME = CTL_CODE(
  639. FILE_DEVICE_FILE_SYSTEM, 8, METHOD_BUFFERED, FILE_ANY_ACCESS
  640. )
  641. FSCTL_IS_VOLUME_MOUNTED = CTL_CODE(
  642. FILE_DEVICE_FILE_SYSTEM, 10, METHOD_BUFFERED, FILE_ANY_ACCESS
  643. )
  644. FSCTL_IS_PATHNAME_VALID = CTL_CODE(
  645. FILE_DEVICE_FILE_SYSTEM, 11, METHOD_BUFFERED, FILE_ANY_ACCESS
  646. )
  647. FSCTL_MARK_VOLUME_DIRTY = CTL_CODE(
  648. FILE_DEVICE_FILE_SYSTEM, 12, METHOD_BUFFERED, FILE_ANY_ACCESS
  649. )
  650. FSCTL_QUERY_RETRIEVAL_POINTERS = CTL_CODE(
  651. FILE_DEVICE_FILE_SYSTEM, 14, METHOD_NEITHER, FILE_ANY_ACCESS
  652. )
  653. FSCTL_GET_COMPRESSION = CTL_CODE(
  654. FILE_DEVICE_FILE_SYSTEM, 15, METHOD_BUFFERED, FILE_ANY_ACCESS
  655. )
  656. FSCTL_SET_COMPRESSION = CTL_CODE(
  657. FILE_DEVICE_FILE_SYSTEM, 16, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA
  658. )
  659. FSCTL_MARK_AS_SYSTEM_HIVE = CTL_CODE(
  660. FILE_DEVICE_FILE_SYSTEM, 19, METHOD_NEITHER, FILE_ANY_ACCESS
  661. )
  662. FSCTL_OPLOCK_BREAK_ACK_NO_2 = CTL_CODE(
  663. FILE_DEVICE_FILE_SYSTEM, 20, METHOD_BUFFERED, FILE_ANY_ACCESS
  664. )
  665. FSCTL_INVALIDATE_VOLUMES = CTL_CODE(
  666. FILE_DEVICE_FILE_SYSTEM, 21, METHOD_BUFFERED, FILE_ANY_ACCESS
  667. )
  668. FSCTL_QUERY_FAT_BPB = CTL_CODE(
  669. FILE_DEVICE_FILE_SYSTEM, 22, METHOD_BUFFERED, FILE_ANY_ACCESS
  670. )
  671. FSCTL_REQUEST_FILTER_OPLOCK = CTL_CODE(
  672. FILE_DEVICE_FILE_SYSTEM, 23, METHOD_BUFFERED, FILE_ANY_ACCESS
  673. )
  674. FSCTL_FILESYSTEM_GET_STATISTICS = CTL_CODE(
  675. FILE_DEVICE_FILE_SYSTEM, 24, METHOD_BUFFERED, FILE_ANY_ACCESS
  676. )
  677. FSCTL_GET_NTFS_VOLUME_DATA = CTL_CODE(
  678. FILE_DEVICE_FILE_SYSTEM, 25, METHOD_BUFFERED, FILE_ANY_ACCESS
  679. )
  680. FSCTL_GET_NTFS_FILE_RECORD = CTL_CODE(
  681. FILE_DEVICE_FILE_SYSTEM, 26, METHOD_BUFFERED, FILE_ANY_ACCESS
  682. )
  683. FSCTL_GET_VOLUME_BITMAP = CTL_CODE(
  684. FILE_DEVICE_FILE_SYSTEM, 27, METHOD_NEITHER, FILE_ANY_ACCESS
  685. )
  686. FSCTL_GET_RETRIEVAL_POINTERS = CTL_CODE(
  687. FILE_DEVICE_FILE_SYSTEM, 28, METHOD_NEITHER, FILE_ANY_ACCESS
  688. )
  689. FSCTL_MOVE_FILE = CTL_CODE(
  690. FILE_DEVICE_FILE_SYSTEM, 29, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  691. )
  692. FSCTL_IS_VOLUME_DIRTY = CTL_CODE(
  693. FILE_DEVICE_FILE_SYSTEM, 30, METHOD_BUFFERED, FILE_ANY_ACCESS
  694. )
  695. FSCTL_ALLOW_EXTENDED_DASD_IO = CTL_CODE(
  696. FILE_DEVICE_FILE_SYSTEM, 32, METHOD_NEITHER, FILE_ANY_ACCESS
  697. )
  698. FSCTL_FIND_FILES_BY_SID = CTL_CODE(
  699. FILE_DEVICE_FILE_SYSTEM, 35, METHOD_NEITHER, FILE_ANY_ACCESS
  700. )
  701. FSCTL_SET_OBJECT_ID = CTL_CODE(
  702. FILE_DEVICE_FILE_SYSTEM, 38, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  703. )
  704. FSCTL_GET_OBJECT_ID = CTL_CODE(
  705. FILE_DEVICE_FILE_SYSTEM, 39, METHOD_BUFFERED, FILE_ANY_ACCESS
  706. )
  707. FSCTL_DELETE_OBJECT_ID = CTL_CODE(
  708. FILE_DEVICE_FILE_SYSTEM, 40, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  709. )
  710. FSCTL_SET_REPARSE_POINT = CTL_CODE(
  711. FILE_DEVICE_FILE_SYSTEM, 41, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  712. )
  713. FSCTL_GET_REPARSE_POINT = CTL_CODE(
  714. FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS
  715. )
  716. FSCTL_DELETE_REPARSE_POINT = CTL_CODE(
  717. FILE_DEVICE_FILE_SYSTEM, 43, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  718. )
  719. FSCTL_ENUM_USN_DATA = CTL_CODE(
  720. FILE_DEVICE_FILE_SYSTEM, 44, METHOD_NEITHER, FILE_ANY_ACCESS
  721. )
  722. FSCTL_SECURITY_ID_CHECK = CTL_CODE(
  723. FILE_DEVICE_FILE_SYSTEM, 45, METHOD_NEITHER, FILE_READ_DATA
  724. )
  725. FSCTL_READ_USN_JOURNAL = CTL_CODE(
  726. FILE_DEVICE_FILE_SYSTEM, 46, METHOD_NEITHER, FILE_ANY_ACCESS
  727. )
  728. FSCTL_SET_OBJECT_ID_EXTENDED = CTL_CODE(
  729. FILE_DEVICE_FILE_SYSTEM, 47, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  730. )
  731. FSCTL_CREATE_OR_GET_OBJECT_ID = CTL_CODE(
  732. FILE_DEVICE_FILE_SYSTEM, 48, METHOD_BUFFERED, FILE_ANY_ACCESS
  733. )
  734. FSCTL_SET_SPARSE = CTL_CODE(
  735. FILE_DEVICE_FILE_SYSTEM, 49, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  736. )
  737. FSCTL_SET_ZERO_DATA = CTL_CODE(
  738. FILE_DEVICE_FILE_SYSTEM, 50, METHOD_BUFFERED, FILE_WRITE_DATA
  739. )
  740. FSCTL_QUERY_ALLOCATED_RANGES = CTL_CODE(
  741. FILE_DEVICE_FILE_SYSTEM, 51, METHOD_NEITHER, FILE_READ_DATA
  742. )
  743. FSCTL_SET_ENCRYPTION = CTL_CODE(
  744. FILE_DEVICE_FILE_SYSTEM, 53, METHOD_NEITHER, FILE_ANY_ACCESS
  745. )
  746. FSCTL_ENCRYPTION_FSCTL_IO = CTL_CODE(
  747. FILE_DEVICE_FILE_SYSTEM, 54, METHOD_NEITHER, FILE_ANY_ACCESS
  748. )
  749. FSCTL_WRITE_RAW_ENCRYPTED = CTL_CODE(
  750. FILE_DEVICE_FILE_SYSTEM, 55, METHOD_NEITHER, FILE_SPECIAL_ACCESS
  751. )
  752. FSCTL_READ_RAW_ENCRYPTED = CTL_CODE(
  753. FILE_DEVICE_FILE_SYSTEM, 56, METHOD_NEITHER, FILE_SPECIAL_ACCESS
  754. )
  755. FSCTL_CREATE_USN_JOURNAL = CTL_CODE(
  756. FILE_DEVICE_FILE_SYSTEM, 57, METHOD_NEITHER, FILE_ANY_ACCESS
  757. )
  758. FSCTL_READ_FILE_USN_DATA = CTL_CODE(
  759. FILE_DEVICE_FILE_SYSTEM, 58, METHOD_NEITHER, FILE_ANY_ACCESS
  760. )
  761. FSCTL_WRITE_USN_CLOSE_RECORD = CTL_CODE(
  762. FILE_DEVICE_FILE_SYSTEM, 59, METHOD_NEITHER, FILE_ANY_ACCESS
  763. )
  764. FSCTL_EXTEND_VOLUME = CTL_CODE(
  765. FILE_DEVICE_FILE_SYSTEM, 60, METHOD_BUFFERED, FILE_ANY_ACCESS
  766. )
  767. FSCTL_QUERY_USN_JOURNAL = CTL_CODE(
  768. FILE_DEVICE_FILE_SYSTEM, 61, METHOD_BUFFERED, FILE_ANY_ACCESS
  769. )
  770. FSCTL_DELETE_USN_JOURNAL = CTL_CODE(
  771. FILE_DEVICE_FILE_SYSTEM, 62, METHOD_BUFFERED, FILE_ANY_ACCESS
  772. )
  773. FSCTL_MARK_HANDLE = CTL_CODE(
  774. FILE_DEVICE_FILE_SYSTEM, 63, METHOD_BUFFERED, FILE_ANY_ACCESS
  775. )
  776. FSCTL_SIS_COPYFILE = CTL_CODE(
  777. FILE_DEVICE_FILE_SYSTEM, 64, METHOD_BUFFERED, FILE_ANY_ACCESS
  778. )
  779. FSCTL_SIS_LINK_FILES = CTL_CODE(
  780. FILE_DEVICE_FILE_SYSTEM, 65, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA
  781. )
  782. FSCTL_HSM_MSG = CTL_CODE(
  783. FILE_DEVICE_FILE_SYSTEM, 66, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA
  784. )
  785. FSCTL_HSM_DATA = CTL_CODE(
  786. FILE_DEVICE_FILE_SYSTEM, 68, METHOD_NEITHER, FILE_READ_DATA | FILE_WRITE_DATA
  787. )
  788. FSCTL_RECALL_FILE = CTL_CODE(
  789. FILE_DEVICE_FILE_SYSTEM, 69, METHOD_NEITHER, FILE_ANY_ACCESS
  790. )
  791. FSCTL_READ_FROM_PLEX = CTL_CODE(
  792. FILE_DEVICE_FILE_SYSTEM, 71, METHOD_OUT_DIRECT, FILE_READ_DATA
  793. )
  794. FSCTL_FILE_PREFETCH = CTL_CODE(
  795. FILE_DEVICE_FILE_SYSTEM, 72, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  796. )
  797. FSCTL_MAKE_MEDIA_COMPATIBLE = CTL_CODE(
  798. FILE_DEVICE_FILE_SYSTEM, 76, METHOD_BUFFERED, FILE_WRITE_DATA
  799. )
  800. FSCTL_SET_DEFECT_MANAGEMENT = CTL_CODE(
  801. FILE_DEVICE_FILE_SYSTEM, 77, METHOD_BUFFERED, FILE_WRITE_DATA
  802. )
  803. FSCTL_QUERY_SPARING_INFO = CTL_CODE(
  804. FILE_DEVICE_FILE_SYSTEM, 78, METHOD_BUFFERED, FILE_ANY_ACCESS
  805. )
  806. FSCTL_QUERY_ON_DISK_VOLUME_INFO = CTL_CODE(
  807. FILE_DEVICE_FILE_SYSTEM, 79, METHOD_BUFFERED, FILE_ANY_ACCESS
  808. )
  809. FSCTL_SET_VOLUME_COMPRESSION_STATE = CTL_CODE(
  810. FILE_DEVICE_FILE_SYSTEM, 80, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  811. )
  812. FSCTL_TXFS_MODIFY_RM = CTL_CODE(
  813. FILE_DEVICE_FILE_SYSTEM, 81, METHOD_BUFFERED, FILE_WRITE_DATA
  814. )
  815. FSCTL_TXFS_QUERY_RM_INFORMATION = CTL_CODE(
  816. FILE_DEVICE_FILE_SYSTEM, 82, METHOD_BUFFERED, FILE_READ_DATA
  817. )
  818. FSCTL_TXFS_ROLLFORWARD_REDO = CTL_CODE(
  819. FILE_DEVICE_FILE_SYSTEM, 84, METHOD_BUFFERED, FILE_WRITE_DATA
  820. )
  821. FSCTL_TXFS_ROLLFORWARD_UNDO = CTL_CODE(
  822. FILE_DEVICE_FILE_SYSTEM, 85, METHOD_BUFFERED, FILE_WRITE_DATA
  823. )
  824. FSCTL_TXFS_START_RM = CTL_CODE(
  825. FILE_DEVICE_FILE_SYSTEM, 86, METHOD_BUFFERED, FILE_WRITE_DATA
  826. )
  827. FSCTL_TXFS_SHUTDOWN_RM = CTL_CODE(
  828. FILE_DEVICE_FILE_SYSTEM, 87, METHOD_BUFFERED, FILE_WRITE_DATA
  829. )
  830. FSCTL_TXFS_READ_BACKUP_INFORMATION = CTL_CODE(
  831. FILE_DEVICE_FILE_SYSTEM, 88, METHOD_BUFFERED, FILE_READ_DATA
  832. )
  833. FSCTL_TXFS_WRITE_BACKUP_INFORMATION = CTL_CODE(
  834. FILE_DEVICE_FILE_SYSTEM, 89, METHOD_BUFFERED, FILE_WRITE_DATA
  835. )
  836. FSCTL_TXFS_CREATE_SECONDARY_RM = CTL_CODE(
  837. FILE_DEVICE_FILE_SYSTEM, 90, METHOD_BUFFERED, FILE_WRITE_DATA
  838. )
  839. FSCTL_TXFS_GET_METADATA_INFO = CTL_CODE(
  840. FILE_DEVICE_FILE_SYSTEM, 91, METHOD_BUFFERED, FILE_READ_DATA
  841. )
  842. FSCTL_TXFS_GET_TRANSACTED_VERSION = CTL_CODE(
  843. FILE_DEVICE_FILE_SYSTEM, 92, METHOD_BUFFERED, FILE_READ_DATA
  844. )
  845. FSCTL_TXFS_CREATE_MINIVERSION = CTL_CODE(
  846. FILE_DEVICE_FILE_SYSTEM, 95, METHOD_BUFFERED, FILE_WRITE_DATA
  847. )
  848. FSCTL_TXFS_TRANSACTION_ACTIVE = CTL_CODE(
  849. FILE_DEVICE_FILE_SYSTEM, 99, METHOD_BUFFERED, FILE_READ_DATA
  850. )
  851. FSCTL_SET_ZERO_ON_DEALLOCATION = CTL_CODE(
  852. FILE_DEVICE_FILE_SYSTEM, 101, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  853. )
  854. FSCTL_SET_REPAIR = CTL_CODE(
  855. FILE_DEVICE_FILE_SYSTEM, 102, METHOD_BUFFERED, FILE_ANY_ACCESS
  856. )
  857. FSCTL_GET_REPAIR = CTL_CODE(
  858. FILE_DEVICE_FILE_SYSTEM, 103, METHOD_BUFFERED, FILE_ANY_ACCESS
  859. )
  860. FSCTL_WAIT_FOR_REPAIR = CTL_CODE(
  861. FILE_DEVICE_FILE_SYSTEM, 104, METHOD_BUFFERED, FILE_ANY_ACCESS
  862. )
  863. FSCTL_INITIATE_REPAIR = CTL_CODE(
  864. FILE_DEVICE_FILE_SYSTEM, 106, METHOD_BUFFERED, FILE_ANY_ACCESS
  865. )
  866. FSCTL_CSC_INTERNAL = CTL_CODE(
  867. FILE_DEVICE_FILE_SYSTEM, 107, METHOD_NEITHER, FILE_ANY_ACCESS
  868. )
  869. FSCTL_SHRINK_VOLUME = CTL_CODE(
  870. FILE_DEVICE_FILE_SYSTEM, 108, METHOD_BUFFERED, FILE_SPECIAL_ACCESS
  871. )
  872. FSCTL_SET_SHORT_NAME_BEHAVIOR = CTL_CODE(
  873. FILE_DEVICE_FILE_SYSTEM, 109, METHOD_BUFFERED, FILE_ANY_ACCESS
  874. )
  875. FSCTL_DFSR_SET_GHOST_HANDLE_STATE = CTL_CODE(
  876. FILE_DEVICE_FILE_SYSTEM, 110, METHOD_BUFFERED, FILE_ANY_ACCESS
  877. )
  878. FSCTL_TXFS_LIST_TRANSACTION_LOCKED_FILES = CTL_CODE(
  879. FILE_DEVICE_FILE_SYSTEM, 120, METHOD_BUFFERED, FILE_READ_DATA
  880. )
  881. FSCTL_TXFS_LIST_TRANSACTIONS = CTL_CODE(
  882. FILE_DEVICE_FILE_SYSTEM, 121, METHOD_BUFFERED, FILE_READ_DATA
  883. )
  884. FSCTL_QUERY_PAGEFILE_ENCRYPTION = CTL_CODE(
  885. FILE_DEVICE_FILE_SYSTEM, 122, METHOD_BUFFERED, FILE_ANY_ACCESS
  886. )
  887. IOCTL_VOLUME_BASE = ord("V")
  888. IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS = CTL_CODE(
  889. IOCTL_VOLUME_BASE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS
  890. )
  891. IOCTL_VOLUME_ONLINE = CTL_CODE(
  892. IOCTL_VOLUME_BASE, 2, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  893. )
  894. IOCTL_VOLUME_OFFLINE = CTL_CODE(
  895. IOCTL_VOLUME_BASE, 3, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS
  896. )
  897. IOCTL_VOLUME_IS_CLUSTERED = CTL_CODE(
  898. IOCTL_VOLUME_BASE, 12, METHOD_BUFFERED, FILE_ANY_ACCESS
  899. )
  900. IOCTL_VOLUME_GET_GPT_ATTRIBUTES = CTL_CODE(
  901. IOCTL_VOLUME_BASE, 14, METHOD_BUFFERED, FILE_ANY_ACCESS
  902. )
  903. ## enums
  904. ## STORAGE_MEDIA_TYPE
  905. DDS_4mm = 32
  906. MiniQic = 33
  907. Travan = 34
  908. QIC = 35
  909. MP_8mm = 36
  910. AME_8mm = 37
  911. AIT1_8mm = 38
  912. DLT = 39
  913. NCTP = 40
  914. IBM_3480 = 41
  915. IBM_3490E = 42
  916. IBM_Magstar_3590 = 43
  917. IBM_Magstar_MP = 44
  918. STK_DATA_D3 = 45
  919. SONY_DTF = 46
  920. DV_6mm = 47
  921. DMI = 48
  922. SONY_D2 = 49
  923. CLEANER_CARTRIDGE = 50
  924. CD_ROM = 51
  925. CD_R = 52
  926. CD_RW = 53
  927. DVD_ROM = 54
  928. DVD_R = 55
  929. DVD_RW = 56
  930. MO_3_RW = 57
  931. MO_5_WO = 58
  932. MO_5_RW = 59
  933. MO_5_LIMDOW = 60
  934. PC_5_WO = 61
  935. PC_5_RW = 62
  936. PD_5_RW = 63
  937. ABL_5_WO = 64
  938. PINNACLE_APEX_5_RW = 65
  939. SONY_12_WO = 66
  940. PHILIPS_12_WO = 67
  941. HITACHI_12_WO = 68
  942. CYGNET_12_WO = 69
  943. KODAK_14_WO = 70
  944. MO_NFR_525 = 71
  945. NIKON_12_RW = 72
  946. IOMEGA_ZIP = 73
  947. IOMEGA_JAZ = 74
  948. SYQUEST_EZ135 = 75
  949. SYQUEST_EZFLYER = 76
  950. SYQUEST_SYJET = 77
  951. AVATAR_F2 = 78
  952. MP2_8mm = 79
  953. DST_S = 80
  954. DST_M = 81
  955. DST_L = 82
  956. VXATape_1 = 83
  957. VXATape_2 = 84
  958. STK_9840 = 85
  959. LTO_Ultrium = 86
  960. LTO_Accelis = 87
  961. DVD_RAM = 88
  962. AIT_8mm = 89
  963. ADR_1 = 90
  964. ADR_2 = 91
  965. STK_9940 = 92
  966. ## STORAGE_BUS_TYPE
  967. BusTypeUnknown = 0
  968. BusTypeScsi = 1
  969. BusTypeAtapi = 2
  970. BusTypeAta = 3
  971. BusType1394 = 4
  972. BusTypeSsa = 5
  973. BusTypeFibre = 6
  974. BusTypeUsb = 7
  975. BusTypeRAID = 8
  976. BusTypeiScsi = 9
  977. BusTypeSas = 10
  978. BusTypeSata = 11
  979. BusTypeMaxReserved = 127
  980. ## MEDIA_TYPE
  981. Unknown = 0
  982. F5_1Pt2_512 = 1
  983. F3_1Pt44_512 = 2
  984. F3_2Pt88_512 = 3
  985. F3_20Pt8_512 = 4
  986. F3_720_512 = 5
  987. F5_360_512 = 6
  988. F5_320_512 = 7
  989. F5_320_1024 = 8
  990. F5_180_512 = 9
  991. F5_160_512 = 10
  992. RemovableMedia = 11
  993. FixedMedia = 12
  994. F3_120M_512 = 13
  995. F3_640_512 = 14
  996. F5_640_512 = 15
  997. F5_720_512 = 16
  998. F3_1Pt2_512 = 17
  999. F3_1Pt23_1024 = 18
  1000. F5_1Pt23_1024 = 19
  1001. F3_128Mb_512 = 20
  1002. F3_230Mb_512 = 21
  1003. F8_256_128 = 22
  1004. F3_200Mb_512 = 23
  1005. F3_240M_512 = 24
  1006. F3_32M_512 = 25
  1007. ## PARTITION_STYLE
  1008. PARTITION_STYLE_MBR = 0
  1009. PARTITION_STYLE_GPT = 1
  1010. PARTITION_STYLE_RAW = 2
  1011. ## DETECTION_TYPE
  1012. DetectNone = 0
  1013. DetectInt13 = 1
  1014. DetectExInt13 = 2
  1015. ## DISK_CACHE_RETENTION_PRIORITY
  1016. EqualPriority = 0
  1017. KeepPrefetchedData = 1
  1018. KeepReadData = 2
  1019. ## DISK_WRITE_CACHE_STATE - ?????? this enum has disappeared from winioctl.h in windows 2003 SP1 sdk ??????
  1020. DiskWriteCacheNormal = 0
  1021. DiskWriteCacheForceDisable = 1
  1022. DiskWriteCacheDisableNotSupported = 2
  1023. ## BIN_TYPES
  1024. RequestSize = 0
  1025. RequestLocation = 1
  1026. ## CHANGER_DEVICE_PROBLEM_TYPE
  1027. DeviceProblemNone = 0
  1028. DeviceProblemHardware = 1
  1029. DeviceProblemCHMError = 2
  1030. DeviceProblemDoorOpen = 3
  1031. DeviceProblemCalibrationError = 4
  1032. DeviceProblemTargetFailure = 5
  1033. DeviceProblemCHMMoveError = 6
  1034. DeviceProblemCHMZeroError = 7
  1035. DeviceProblemCartridgeInsertError = 8
  1036. DeviceProblemPositionError = 9
  1037. DeviceProblemSensorError = 10
  1038. DeviceProblemCartridgeEjectError = 11
  1039. DeviceProblemGripperError = 12
  1040. DeviceProblemDriveError = 13