Leaked source code of windows server 2003
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.

1133 lines
46 KiB

  1. [Dynamic, provider("CIMWin32"),
  2. Description ("The Win32_FloppyDrive class manages the capabilities "
  3. "of a floppy disk drive."): ToSubClass,
  4. Locale (0x409), UUID ("{FB1F3A64-BBAC-11d2-85E5-0000F8102E5F}") ]
  5. class Win32_FloppyDrive : CIM_DisketteDrive
  6. {
  7. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  8. Description ("The DeviceID property contains a string "
  9. "uniquely identifying the floppy disk drive from other "
  10. "devices on the system."): ToSubClass,
  11. MappingStrings {"WMI"}: ToSubClass]
  12. string DeviceID ;
  13. [Read : ToSubClass ,
  14. Description ("The Manufacturer property indicates the name of the "
  15. "floppy disk drive manufacturer.\nExample: Acme"): ToSubClass,
  16. MappingStrings {"Win32Registry"}: ToSubClass]
  17. string Manufacturer ;
  18. };
  19. [Dynamic, Provider ("CIMWin32") , Description (
  20. "The Win32_TapeDrive class represents a tape drive on a Win32 computer. "
  21. "Tape drives are primarily distinguished by the fact that they can "
  22. "be accessed only sequentially."): ToSubClass,
  23. Locale (0x409), UUID ("{8502C4B1-5FBB-11D2-AAC1-006008C78BC7}")]
  24. class Win32_TapeDrive:CIM_TapeDrive
  25. {
  26. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  27. Description ("The DeviceID property contains a string "
  28. "uniquely identifying the tape drive with other "
  29. "devices on the system."): ToSubClass,
  30. MappingStrings {"Win32API|File Functions|CreateFile"}: ToSubClass]
  31. string DeviceID ;
  32. [Read : ToSubClass,
  33. Description ("The Compression property specifies whether "
  34. "hardware data compression is enabled or disabled.\nValues: "
  35. "1 (true) or 0 (false). If true, hardware data compression "
  36. "is enabled.") : ToSubClass,
  37. MappingStrings {"Win32API|Tape Backup Structures|"
  38. "TAPE_GET_DRIVE_PARAMETERS|Compression"}: ToSubClass]
  39. uint32 Compression ;
  40. [Read : ToSubClass,
  41. Description ("The ECC property specifies whether the device supports "
  42. "hardware error correction.\nValues: 1 (true) or 0 (false). If true, "
  43. "hardware error correction is supported.") : ToSubClass,
  44. Values {"False", "True"}: ToSubClass,
  45. MappingStrings {"Win32API|Tape Backup Structures|"
  46. "TAPE_GET_DRIVE_PARAMETERS|ECC"}: ToSubClass]
  47. uint32 ECC ;
  48. [Read : ToSubClass,
  49. Description ("The FeaturesHigh property specifies the high-order "
  50. "32 bits of the device features flag.") : ToSubClass,
  51. MappingStrings {"Win32API|Tape Backup Structures|"
  52. "TAPE_GET_DRIVE_PARAMETERS|FeaturesHigh"}: ToSubClass]
  53. uint32 FeaturesHigh ;
  54. [Read : ToSubClass,
  55. Description ("The FeaturesLow property specifies the low-order "
  56. "32 bits of the device features flag.") : ToSubClass,
  57. MappingStrings {"Win32API|Tape Backup Structures|"
  58. "TAPE_GET_DRIVE_PARAMETERS|FeaturesLow"}: ToSubClass]
  59. uint32 FeaturesLow ;
  60. [Read : ToSubClass,
  61. Description ("The MediaType property specifies the media type "
  62. "used by (or accessed by) this device. In this case, it is set to "
  63. "\"Tape Drive\"."): ToSubClass ,
  64. MappingStrings {"Win32_TapeDrive|MediaType|Tape Drive"}: ToSubClass]
  65. string MediaType ;
  66. [Read : ToSubClass,
  67. Description ("The ReportSetMarks property specifies whether setmark "
  68. "reporting is enabled. Setmark reporting makes use of a specialized "
  69. "recorded element that does not contain user data. This recorded "
  70. "element is used to provide a segmentation scheme. This segmentation "
  71. "scheme is hierarchically superior to filemarks. Setmarks provide "
  72. "faster positioning on high-capacity tapes.\nValues: 1 (true) or 0 "
  73. "(false). If true, setmark reporting is enabled.") : ToSubClass,
  74. MappingStrings {"Win32API|Tape Backup Structures|"
  75. "TAPE_GET_DRIVE_PARAMETERS|ReportSetmarks"}: ToSubClass]
  76. uint32 ReportSetMarks ;
  77. [read : ToSubClass ,
  78. Description ("The Id property indicates the manufacturer's "
  79. "identifying name of the Win32 CD ROM drive.\nExample: PLEXTOR "
  80. "CD-ROM PX-12CS 1.01"): ToSubClass,
  81. MappingStrings {"Win32API|File Functions"}: ToSubClass ]
  82. string Id ;
  83. [read : ToSubClass ,
  84. Description ("The Manufacturer property indicates the manufacturer "
  85. "of the Win32 CD-ROM drive.\nExample: PLEXTOR"): ToSubClass,
  86. MappingStrings {"Win32Registry"}: ToSubClass ]
  87. string Manufacturer ;
  88. };
  89. [Dynamic, Provider ("CIMWin32") , Description (
  90. "The Win32_DiskDrive class represents a physical disk drive as seen "
  91. "by a computer running the Win32 operating system. Any interface to "
  92. "a Win32 physical disk drive is a descendent (or member) of this "
  93. "class. The features of the disk drive seen through this object "
  94. "correspond to the logical and management characteristics of the "
  95. "drive. In some cases, this may not reflect the actual physical "
  96. "characteristics of the device. Any object based on another logical "
  97. "device would not be a member of this class."
  98. "\nExample: IDE Fixed Disk."): ToSubClass,
  99. Locale (0x409), UUID ("{8502C4B2-5FBB-11D2-AAC1-006008C78BC7}") ]
  100. class Win32_DiskDrive:CIM_DiskDrive
  101. {
  102. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  103. Description ("The DeviceID property contains a string "
  104. "uniquely identifying the disk drive with other "
  105. "devices on the system."): ToSubClass,
  106. MappingStrings {"WMI"}: ToSubClass]
  107. string DeviceID ;
  108. [read : ToSubClass, units ("Bytes") : ToSubClass,
  109. Description ("The BytesPerSector property indicates the "
  110. "number of bytes in each sector for the physical disk drive."
  111. "\nExample: 512"): ToSubClass,
  112. MappingStrings {"Win32API|Device Input and Output Structures|"
  113. "DISK_GEOMETRY|BytesPerSector"}: ToSubClass]
  114. uint32 BytesPerSector ;
  115. [read : ToSubClass,
  116. Description ("The InterfaceType property indicates the interface "
  117. "type of physical disk drive.\nExample: SCSI"): ToSubClass,
  118. MappingStrings {"Win32API|Device Input and Output Functions|"
  119. "DeviceIoControl"}: ToSubClass]
  120. string InterfaceType ;
  121. [read : ToSubClass,
  122. Description ("The Partitions property indicates the number of "
  123. "partitions on this physical disk drive that are recognized by the "
  124. "operating system.\nExample: 2"): ToSubClass,
  125. MappingStrings {"Win32API|Device Input and Output Structures|"
  126. "PARTITION_INFORMATION|RecognizedPartition"}: ToSubClass]
  127. uint32 Partitions ;
  128. [read : ToSubClass,
  129. Description ("The SectorsPerTrack property indicates the "
  130. "number of sectors in each track for this physical disk drive."
  131. "\nExample: 63"): ToSubClass,
  132. MappingStrings {"Win32API|Device Input and Output Structures|"
  133. "DISK_GEOMETRY|SectorsPerTrack"}: ToSubClass ]
  134. uint32 SectorsPerTrack ;
  135. [read : ToSubClass,
  136. Description ("The TotalCylinders property indicates the total number "
  137. "of cylinders on the physical disk drive. Note: the value for this "
  138. "property is obtained through extended functions of BIOS interrupt "
  139. "13h. The value may be inaccurate if the drive uses a translation "
  140. "scheme to support high capacity disk sizes. Consult the manufacturer "
  141. "for accurate drive specifications.\nExample: 657"): ToSubClass,
  142. MappingStrings {"Win32API|Device Input and Output Structures|"
  143. "DISK_GEOMETRY|Cylinders"}: ToSubClass]
  144. uint64 TotalCylinders ;
  145. [read : ToSubClass,
  146. Description ("The TotalHeads property indicates the total number of "
  147. "heads on the disk drive. Note: the value for this property is "
  148. "obtained through extended functions of BIOS interrupt 13h. The "
  149. "value may be inaccurate if the drive uses a translation scheme to "
  150. "support high capacity disk sizes. Consult the manufacturer "
  151. "for accurate drive specifications."): ToSubClass,
  152. MappingStrings {"Win32API|Device Input and Output Structures|"
  153. "DISK_GEOMETRY|TracksPerCylinder"}: ToSubClass ]
  154. uint32 TotalHeads ;
  155. [read : ToSubClass,
  156. Description ("The TotalSectors property indicates the total "
  157. "number of sectors on the physical disk drive. Note: the value "
  158. "for this property is obtained through extended functions of "
  159. "BIOS interrupt 13h. The value may be inaccurate if the drive "
  160. "uses a translation scheme to support high capacity disk sizes. "
  161. "Consult the manufacturer for accurate drive specifications."
  162. "\nExample: 2649024"): ToSubClass,
  163. MappingStrings {"Win32API|Device Input and Output Structures|"
  164. "DISK_GEOMETRY|SectorsPerTrack"}: ToSubClass ]
  165. uint64 TotalSectors ;
  166. [read : ToSubClass,
  167. Description ("The TotalTracks property indicates the total "
  168. "number of tracks on the physical disk drive. Note: the value for "
  169. "this property is obtained through extended functions of BIOS "
  170. "interrupt 13h. The value may be inaccurate if the drive uses a "
  171. "translation scheme to support high capacity disk sizes. Consult "
  172. "the manufacturer for accurate drive specifications."
  173. "\nExample: 42048"): ToSubClass,
  174. MappingStrings {"Win32API|Device Input and Output Structures|"
  175. "DISK_GEOMETRY|TracksPerCylinder"}: ToSubClass ]
  176. uint64 TotalTracks ;
  177. [read : ToSubClass,
  178. Description ("The TracksPerCylinder property indicates the "
  179. "number of tracks in each cylinder on the physical disk drive. "
  180. "Note: the value for this property is obtained through extended "
  181. "functions of BIOS interrupt 13h. The value may be inaccurate if "
  182. "the drive uses a translation scheme to support high capacity "
  183. "disk sizes. Consult the manufacturer for accurate drive "
  184. "specifications.\nExample: 64"): ToSubClass,
  185. MappingStrings {"Win32API|Device Input and Output Structures|"
  186. "DISK_GEOMETRY|TracksPerCylinder"}: ToSubClass ]
  187. uint32 TracksPerCylinder ;
  188. [read : ToSubClass ,
  189. Description ("The Index property indicates the physical drive number "
  190. "of the given drive. This member is filled by Get Drive Map Info. A "
  191. "value of 0xFF indicates that the given drive does not map to a "
  192. "physical drive.\nExample: 1"): ToSubClass,
  193. MappingStrings {"Win32API|Windows 95/98 Functions|DRIVE_MAP_INFO"
  194. "btInt13Unit"}: ToSubClass ]
  195. uint32 Index ;
  196. [read : ToSubClass,
  197. Description ("The Manufacturer property indicates the name of the "
  198. "disk drive manufacturer.\nExample: Seagate"): ToSubClass,
  199. MappingStrings {"Win32Registry|HKEY_LOCAL_MACHINE\\HARDWARE\\"
  200. "DEVICEMAP\\Scsi\\Scsi Port\\Scsi Bus\\Target Id\\Logical Unit Id\\"
  201. "Identifier", "Win32Registry|Manufacturer" }: ToSubClass ]
  202. string Manufacturer ;
  203. [read : ToSubClass ,
  204. Description ("The MediaLoaded property determines whether the media "
  205. "for a disk drive is loaded. For fixed disk drives, this property "
  206. "will always be TRUE \nValues: TRUE or FALSE. If TRUE, the media "
  207. "is loaded."): ToSubClass,
  208. MappingStrings {"Win32API|Device Input and Output Structures|"
  209. "DISK_GEOMETRY|MediaType|FixedMedia"}: ToSubClass ]
  210. boolean MediaLoaded ;
  211. [Read : ToSubClass,
  212. Description ("The MediaType property is the type of media used or "
  213. "accessed by this device.\nExample: Removable media"): ToSubClass,
  214. MappingStrings {"Win32API|Device Input and Output Structures|"
  215. "DISK_GEOMETRY|MediaType"}: ToSubClass,
  216. Values {"Removable media","Fixed hard disk","Unknown"}: ToSubClass,
  217. ValueMap {"Removable media other than floppy",
  218. "Fixed hard disk media",
  219. "Format is unknown"} ]
  220. string MediaType ;
  221. [read : ToSubClass,
  222. Description ("The Model property indicates the manufacturer's model "
  223. "number of the disk drive.\nExample: ST32171W"): ToSubClass,
  224. MappingStrings {"Win32Registry|HKEY_LOCAL_MACHINE\\HARDWARE\\"
  225. "DEVICEMAP\\Scsi\\Scsi Port\\Scsi Bus\\Target Id\\Logical Unit Id\\"
  226. "Identifier", "Win32Registry|ProductId"}: ToSubClass ]
  227. string Model ;
  228. [read : ToSubClass,
  229. Description ("The SCSIBus property indicates the SCSI bus number of "
  230. "the disk drive.\nExample: 0"): ToSubClass,
  231. MappingStrings {"Win32API|Device Input and Output Structures|"
  232. "SCSI_ADDRESS|PathId"}: ToSubClass ]
  233. uint32 SCSIBus ;
  234. [read : ToSubClass ,
  235. Description ("The SCSILogicalUnit property indicates the "
  236. "SCSI logical unit number (LUN) of the disk drive."
  237. "\nExample: 0"): ToSubClass,
  238. MappingStrings {"Win32API|Device Input and Output Structures|"
  239. "SCSI_ADDRESS|Lun"}: ToSubClass]
  240. uint16 SCSILogicalUnit ;
  241. [read : ToSubClass ,
  242. Description ("The SCSIPort property indicates the SCSI port number "
  243. "of the disk drive.\nExample: 0"): ToSubClass,
  244. MappingStrings {"Win32API|Device Input and Output Structures|"
  245. "SCSI_ADDRESS|PortNumber"}: ToSubClass ]
  246. uint16 SCSIPort ;
  247. [read : ToSubClass,
  248. Description ("The SCSITargetId property indicates the SCSI ID number "
  249. "of the disk drive.\nExample: 0"): ToSubClass,
  250. MappingStrings {"Win32API|Device Input and Output Structures|"
  251. "SCSI_ADDRESS|TargetId"}: ToSubClass ]
  252. uint16 SCSITargetId ;
  253. [read : ToSubClass , units ("Bytes") : ToSubClass,
  254. Description ("The Size property indicates the size of the disk "
  255. "drive. It is calculated by multiplying the total number of "
  256. "cylinders, tracks in each cylinder, sectors in each track, and bytes "
  257. "in each sector.") : ToSubClass,
  258. MappingStrings {"Win32API|Device Input and Output Structures|"
  259. "DISK_GEOMETRY"}: ToSubClass]
  260. uint64 Size ;
  261. [read : ToSubClass,
  262. Description ("The Signature property is used to identify "
  263. "a disk. It can be used to identify a shared resource. "): ToSubClass,
  264. MappingStrings {"Win32API|Device Input and Output Structures|"
  265. "DRIVE_LAYOUT_INFORMATION|Signature"}: ToSubClass]
  266. uint32 Signature;
  267. };
  268. [Dynamic, Provider ("CIMWin32"),
  269. Description ("The Win32_CDROMDrive class represents a CD-ROM "
  270. "drive on a Win32_ComputerSystem. \n\nNote: The name of "
  271. "the drive does not correspond to the logical drive letter "
  272. "assigned to device."): ToSubClass,
  273. Locale (0x409), UUID ("{8502C4B3-5FBB-11D2-AAC1-006008C78BC7}")]
  274. class Win32_CDROMDrive:CIM_CDROMDrive
  275. {
  276. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  277. Description ("The DeviceID property contains a string to uniquely "
  278. "identify this CD-ROM drive."): ToSubClass,
  279. MappingStrings {"Win32API|File Functions|"
  280. "GetLogicalDriveStrings"}: ToSubClass]
  281. string DeviceID ;
  282. [read : ToSubClass ,
  283. Description ("The Drive property indicates the drive letter of the "
  284. "CD ROM drive.\nExample: d:\\"): ToSubClass,
  285. MappingStrings {"Win32API|File Functions|GetDriveType"}: ToSubClass]
  286. string Drive ;
  287. [read: ToSubClass, DEPRECATED: ToSubClass,
  288. Description ("The FileSystemFlags property is deprecated in favor of "
  289. "FileSystemFlagsEx"): ToSubClass,
  290. MappingStrings {"Win32API|File System Functions|"
  291. "GetVolumeInformation"}: ToSubClass]
  292. uint16 FileSystemFlags ;
  293. [read: ToSubClass,
  294. Description ("The FileSystemFlagsEx property indicates the file "
  295. "system flags associated with the Win32 CD-ROM drive. This "
  296. "parameter can be any combination of flags. FS_FILE_COMPRESSION "
  297. "and FS_VOL_IS_COMPRESSED are mutually exclusive."
  298. "\nExample: 0."): ToSubClass,
  299. MappingStrings {"Win32API|File System Functions|"
  300. "GetVolumeInformation"}: ToSubClass,
  301. BitValues {
  302. "Case Sensitive Search" ,
  303. "Case Preserved Names" ,
  304. "Unicode On Disk" ,
  305. "Persistent ACLs" ,
  306. "File Compression" ,
  307. "Volume Quotas" ,
  308. "Supports Sparse Files" ,
  309. "Supports Reparse Points" ,
  310. "Supports Remote Storage" ,
  311. "Supports Long Names" ,
  312. "Volume Is Compressed" ,
  313. "Supports Object IDs" ,
  314. "Supports Encryption",
  315. "Supports Named Streams"
  316. } : ToSubClass,
  317. BitMap {
  318. "0", "1","2","3","4","5","6",
  319. "7","8","14","15","16","17",
  320. "18"}: ToSubClass ]
  321. uint32 FileSystemFlagsEx ;
  322. [read : ToSubClass ,
  323. Description ("The Id property indicates the driver letter "
  324. "uniquely identifying this CD-ROM drive.\nExample: d:\\ "): ToSubClass,
  325. MappingStrings {"Win32API|File Functions|GetDriveType"}: ToSubClass ]
  326. string Id ;
  327. [read : ToSubClass ,
  328. Description ("The Manufacturer property indicates the manufacturer "
  329. "of the Win32 CD-ROM drive.\nExample: PLEXTOR"): ToSubClass,
  330. MappingStrings {"Win32Registry"}: ToSubClass ]
  331. string Manufacturer ;
  332. [read : ToSubClass ,
  333. Description ("The MaximumComponentLength property indicates the "
  334. "maximum length of a filename component supported by the Win32 CD-"
  335. "ROM drive. A filename component the portion of a filename "
  336. "between backslashes. The value can be used to indicate that long "
  337. "names are supported by the specified file system. For example, "
  338. "for a FAT file system supporting long names, the function stores "
  339. "the value 255, rather than the previous 8.3 indicator. Long names "
  340. "can also be supported on systems that use the NTFS file system."
  341. "\nExample: 255."): ToSubClass,
  342. MappingStrings {"Win32API|File System Functions|"
  343. "GetVolumeInformation"}: ToSubClass ]
  344. uint32 MaximumComponentLength ;
  345. [read : ToSubClass,
  346. Description ("The MediaType property indicates the type of media used "
  347. "or accessed by this device. In this class, the value will always be "
  348. "\"CD-ROM\"."): ToSubClass ,
  349. MappingStrings {"Win32API|GetDriveType"}: ToSubClass,
  350. Values {"Random Access","Supports Writing","Removable Media",
  351. "CD-ROM"}: ToSubClass]
  352. string MediaType ;
  353. [read : ToSubClass ,
  354. Description ("The RevisionLevel property indicates the firmware "
  355. "revision level of the Win32 CD-ROM drive."): ToSubClass,
  356. MappingStrings {"Win32Registry|RevisionLevel"}: ToSubClass ]
  357. string RevisionLevel ;
  358. [Read,
  359. Description ("The MfrAssignedRevisionLevel property indicates "
  360. "the manufacturer "
  361. "assigned firmware revision level of the CDROM drive.\n"),
  362. MappingStrings {"Win2000DDK|KernelModeDrivers|"
  363. "STORAGE_DEVICE_DESCRIPTOR|ProductRevisionOffset"}]
  364. string MfrAssignedRevisionLevel;
  365. [read : ToSubClass ,
  366. Description ("The SCSITargetId property indicates the SCSI ID number "
  367. "of the Win32 CD-ROM drive.\nExample: 0."): ToSubClass,
  368. MappingStrings {"Win32API|DeviceIoControl|"
  369. "IOCTL_SCSI_GET_ADDRESS"}: ToSubClass ]
  370. uint16 SCSITargetId ;
  371. [read : ToSubClass ,
  372. Description ("The VolumeName property indicates the volume name of "
  373. "the Win32 CD-ROM drive."): ToSubClass,
  374. MappingStrings {"Win32API|File System Functions|"
  375. "GetVolumeInformation"}: ToSubClass ]
  376. string VolumeName ;
  377. [read : ToSubClass ,
  378. Description ("The VolumeSerialNumber property indicates the "
  379. "volume serial number of the media in the CD-ROM drive."
  380. "\nExample: A8C3-D032"): ToSubClass,
  381. MappingStrings {"Win32API|File System Functions|"
  382. "GetVolumeInformation"}: ToSubClass ]
  383. string VolumeSerialNumber ;
  384. [read : ToSubClass , Units ("KiloBytes per Second"),
  385. Description ("The TransferRate property indicates the CD-ROM drive's "
  386. "transfer rate. A value of -1 indicates that the rate could not be "
  387. "determined. This could potentially happen, for example, if the CD is "
  388. "not in the drive."): ToSubClass,
  389. MappingStrings {"Win32API|File Reference and Time Reference"}: ToSubClass ]
  390. Real64 TransferRate ;
  391. [read : ToSubClass ,
  392. Description ("The DriveIntegrity property indicates whether "
  393. "files can be accurately read from the CD device. This is "
  394. "achieved by reading a block of data twice and comparing the "
  395. "data against itself."): ToSubClass,
  396. MappingStrings {"WMI"}: ToSubClass ]
  397. boolean DriveIntegrity ;
  398. [read : ToSubClass ,
  399. Description ("The MediaLoaded property indicates whether a CD-"
  400. "ROM is in the drive.\nValues: TRUE or FALSE. If TRUE, the CD is "
  401. "in the drive."): ToSubClass,
  402. MappingStrings {"Win32API|File System Functions|"
  403. "GetVolumeInformation"}: ToSubClass ]
  404. boolean MediaLoaded ;
  405. [read: ToSubClass,
  406. Description ("The SCSIBus property indicates the SCSI bus number for "
  407. "the disk drive.\nExample: 0"): ToSubClass,
  408. MappingStrings {"Win32API|SCSI Structures|SCSI_REQUEST_BLOCK|"
  409. "PathId"}: ToSubClass]
  410. uint32 SCSIBus ;
  411. [read: ToSubClass,
  412. Description ("The SCSILogicalUnit property indicates the SCSI "
  413. "logical unit number (LUN) of the disk drive. The LUN is used "
  414. "to designate which SCSI controller is being accessed in a system "
  415. "with more than one controller being used. The SCSI device ID is "
  416. "similar, but is the designation for multiple devices on one "
  417. "controller.\nExample: 0"): ToSubClass,
  418. MappingStrings {"Win32API|SCSI Structures|SCSI_REQUEST_BLOCK|"
  419. "Lun"}: ToSubClass ]
  420. uint16 SCSILogicalUnit ;
  421. [read: ToSubClass,
  422. Description ("The SCSIPort property indicates the SCSI port number "
  423. "of the disk drive.\nExample: 1"): ToSubClass,
  424. MappingStrings {"Win32API|SCSI Structures|SCSI_REQUEST_BLOCK|"
  425. "ScsiStatus"}: ToSubClass ]
  426. uint16 SCSIPort ;
  427. [read: ToSubClass, units ("Bytes"),
  428. Description ("The Size property indicates the size of the "
  429. "disk drive."): ToSubClass,
  430. MappingStrings {"Win32API|File Functions|"
  431. "GetDiskFreeSpace"}: ToSubClass]
  432. uint64 Size ;
  433. };
  434. [dynamic, provider("CIMWin32"),
  435. Description ("The Win32_FloppyController class represents the "
  436. "capabilities and management capacity of a floppy disk drive "
  437. "controller."): ToSubClass,
  438. Locale (0x409), UUID ("{2A7DC003-BAEF-11d2-85E5-0000F8102E5F}") ]
  439. class Win32_FloppyController : CIM_Controller
  440. {
  441. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  442. Description ("The DeviceID property contains a string "
  443. "uniquely identifying the floppy controller with other "
  444. "devices on the system."): ToSubClass,
  445. MappingStrings {"WMI"}: ToSubClass]
  446. string DeviceID ;
  447. [read : ToSubClass ,
  448. Description ("The Manufacturer property indicates the name of the "
  449. "manufacturer (of the floppy controller). \nExample: Acme."): ToSubClass,
  450. MappingStrings {"Win32Registry"}: ToSubClass ]
  451. string Manufacturer ;
  452. };
  453. [Dynamic, Provider ("CIMWin32"), SupportsUpdate,
  454. Description ("The Win32_LogicalDisk class represents a data "
  455. "source that resolves to an actual local storage device on a "
  456. "Win32 system.\n"
  457. "The class returns both local as well as mapped logical disks. "
  458. "However, the recommended approach is to use this class for obtaining "
  459. "information on local disks and to use the Win32_MappedLogicalDisk "
  460. "class for information on mapped logical disk."): ToSubClass,
  461. Locale (0x409), UUID ("{8502C4B7-5FBB-11D2-AAC1-006008C78BC7}") ]
  462. class Win32_LogicalDisk:CIM_LogicalDisk
  463. {
  464. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  465. Description ("The DeviceID property contains a string "
  466. "uniquely identifying the logical disk from other "
  467. "devices on the system."): ToSubClass,
  468. MappingStrings {"WMI"}: ToSubClass]
  469. string DeviceID ;
  470. [read : ToSubClass ,
  471. Description ("The Compressed property indicates whether the logical "
  472. "volume exists as a single compressed entity, such as a DoubleSpace "
  473. "volume. If file based compression is supported (such as on NTFS), "
  474. "this property will be FALSE."): ToSubClass,
  475. MappingStrings {"Win32API|File System Functions|"
  476. "GetVolumeInformation|FS_VOL_IS_COMPRESSED"}: ToSubClass]
  477. boolean Compressed ;
  478. [read : ToSubClass ,
  479. Description ("The DriveType property contains a numeric value "
  480. "corresponding to the type of disk drive this logical disk "
  481. "represents. Please refer to the Platform SDK documentation "
  482. "for additional values.\nExample: A CD-ROM drive would "
  483. "return 5." ): ToSubClass ,
  484. MappingStrings {"Win32API|FileFunctions|GetDriveType"}: ToSubClass,
  485. Values {"Unknown", "No Root Directory", "Removable Disk", "Local Disk",
  486. "Network Drive", "Compact Disc", "RAM Disk"} : ToSubClass]
  487. uint32 DriveType ;
  488. [read : ToSubClass ,
  489. Description ("The FileSystem property indicates the file system on "
  490. "the logical disk.\nExample: NTFS"): ToSubClass ,
  491. MappingStrings {"Win32API|File System Functions|"
  492. "GetVolumeInformation"}: ToSubClass]
  493. string FileSystem ;
  494. [read : ToSubClass ,
  495. Description ("The MaximumComponentLength property contains the "
  496. "maximum length of a filename component supported by the Win32 drive. "
  497. "A filename component is that portion of a filename "
  498. "between backslashes. The value can be used to indicate that long "
  499. "names are supported by the specified file system. For example, "
  500. "for a FAT file system supporting long names, the function stores "
  501. "the value 255, rather than the previous 8.3 indicator. Long names "
  502. "can also be supported on systems that use the NTFS file system."
  503. "\nExample: 255"): ToSubClass,
  504. MappingStrings {"Win32API|File System Functions|"
  505. "GetVolumeInformation"}: ToSubClass ]
  506. uint32 MaximumComponentLength ;
  507. [read : ToSubClass ,
  508. Description ("The ProviderName property indicates the network path "
  509. "name to the logical device."): ToSubClass ,
  510. MappingStrings {"Win32API|Windows Networking Functions|"
  511. "WNetGetConnection"}: ToSubClass]
  512. string ProviderName ;
  513. [read : ToSubClass ,
  514. Description ("The SupportsFileBasedCompression property indicates "
  515. "whether the logical disk partition supports file based compression, "
  516. "such as is the case with NTFS. This property is FALSE, when the "
  517. "Compressed property is TRUE.\nValues: TRUE or FALSE. If TRUE, the "
  518. "logical disk supports file based compression."): ToSubClass ,
  519. MappingStrings {"Win32API|File System Functions|"
  520. "GetVolumeInformation|FS_FILE_COMPRESSION"}: ToSubClass]
  521. boolean SupportsFileBasedCompression ;
  522. [read : ToSubClass , write: ToSubClass ,
  523. Description ("The VolumeName property indicates the volume name of "
  524. "the logical disk.\nConstraints: Maximum 32 characters"): ToSubClass,
  525. MappingStrings {"Win32API|File System Functions|"
  526. "GetVolumeInformation"}: ToSubClass]
  527. string VolumeName ;
  528. [read : ToSubClass,
  529. Description ("The VolumeSerialNumber property indicates the volume "
  530. "serial number of the logical disk.\nConstraints: Maximum 11 characters"
  531. "\nExample: A8C3-D032"): ToSubClass,
  532. MappingStrings {"Win32API|File System Functions|"
  533. "GetVolumeInformation"}: ToSubClass ]
  534. string VolumeSerialNumber ;
  535. [read : ToSubClass ,
  536. Description ("The MediaType property indicates the type of media "
  537. "currently present in the logical drive. This value will be one of "
  538. "the values of the MEDIA_TYPE enumeration defined in winioctl.h."
  539. "\n<B>Note:</B> The value may not be exact for removable drives if "
  540. "currently there is no media in the drive."): ToSubClass ,
  541. MappingStrings {"Win32API|Device Input and Output Functions|"
  542. "DeviceIoControl"}: ToSubClass,
  543. Values
  544. {
  545. "Format is unknown",
  546. "5�-Inch Floppy Disk",
  547. "3�-Inch Floppy Disk",
  548. "3�-Inch Floppy Disk",
  549. "3�-Inch Floppy Disk",
  550. "3�-Inch Floppy Disk",
  551. "5�-Inch Floppy Disk",
  552. "5�-Inch Floppy Disk",
  553. "5�-Inch Floppy Disk",
  554. "5�-Inch Floppy Disk",
  555. "5�-Inch Floppy Disk",
  556. "Removable media other than floppy",
  557. "Fixed hard disk media",
  558. "3�-Inch Floppy Disk",
  559. "3�-Inch Floppy Disk",
  560. "5�-Inch Floppy Disk",
  561. "5�-Inch Floppy Disk",
  562. "3�-Inch Floppy Disk",
  563. "3�-Inch Floppy Disk",
  564. "5�-Inch Floppy Disk",
  565. "3�-Inch Floppy Disk",
  566. "3�-Inch Floppy Disk",
  567. "8-Inch Floppy Disk"
  568. }: ToSubClass]
  569. uint32 MediaType ;
  570. [read, Description ("The SupportsDiskQuotas property indicates whether "
  571. "this volume supports disk Quotas")
  572. ]
  573. boolean SupportsDiskQuotas;
  574. [read, Description ("The QuotasDisabled property indicates that "
  575. "Quota management is not enabled on this volume.")
  576. ]
  577. boolean QuotasDisabled;
  578. [read, Description ("The QuotasIncomplete property indicates that Quota "
  579. "management was used but has been disabled. Incomplete refers to the "
  580. "information left in the file system after quota management has been "
  581. "disabled.")
  582. ]
  583. boolean QuotasIncomplete;
  584. [read, Description ("The QuotasRebuilding property indicates an active "
  585. "state signifying that the file system is in process of compiling "
  586. "information and setting the disk up for quota management.")
  587. ]
  588. boolean QuotasRebuilding;
  589. [Implemented,
  590. MappingStrings{"Fmifs.dll | Method ChkDskExRoutine"},
  591. Description("This method invokes the chkdsk operation "
  592. "on the disk. The method is applicable to only those "
  593. "instances of logical disk that represent a physical "
  594. "disk in the machine. It is not applicable to "
  595. "mapped logical drives. The return "
  596. "value of the method will indicate one of the following - "
  597. "Success - Chkdsk completed, Success - Locked and chkdsk "
  598. "scheduled on reboot, Failure - Unknown file system, "
  599. "Failure - Unknown error, Failure - Unsupported File System."),
  600. Values{ "Success - Chkdsk completed",
  601. "Success - Locked and chkdsk scheduled on reboot",
  602. "Failure - Unknown file system",
  603. "Failure - Unknown error",
  604. "Failure - Unsupported File System"} ]
  605. uint32 Chkdsk(
  606. [Description("This parameter indicates what should be "
  607. "done to errors found on the disk. If true, then "
  608. "errors are fixed."),
  609. in]
  610. boolean FixErrors=False,
  611. [Description("This parameter indicates whether "
  612. "a vigorous check of index entries should be "
  613. "performed."),
  614. in]
  615. boolean VigorousIndexCheck=True,
  616. [Description("This parameter indicates whether the "
  617. "folder cycle checking should be skipped or not."),
  618. in]
  619. boolean SkipFolderCycle=True,
  620. [Description("This parameter indicates whether the "
  621. "drive should be forced to dismount before checking."),
  622. in]
  623. boolean ForceDismount=False,
  624. [Description("This parameter indicates whether the "
  625. "bad sectors should be located and the readable information "
  626. "should be recovered from these sectors."),
  627. in]
  628. boolean RecoverBadSectors=False,
  629. [Description("This parameter indicates whether the "
  630. "chkdsk operation should be performed at next boot up "
  631. "time, in case the operation could not be performed "
  632. "because the disk was locked at time the method "
  633. "was called."),
  634. in]
  635. boolean OkToRunAtBootUp=False
  636. );
  637. [Read,
  638. MappingStrings{"FSCTL_IS_VOLUME_DIRTY"},
  639. Description("The VolumeDirty property indicates whether "
  640. "the disk requires chkdsk to be run at next boot up time. "
  641. "The property is applicable to only those "
  642. "instances of logical disk that represent a physical "
  643. "disk in the machine. It is not applicable to "
  644. "mapped logical drives. ")]
  645. boolean VolumeDirty;
  646. [Static,
  647. Implemented,
  648. Description("This method is used schedule chkdsk to be run at "
  649. "the next reboot if the dirty bit has been set. "
  650. " The method is applicable to only those "
  651. "instances of logical disk that represent a physical "
  652. "disk in the machine. It is not applicable to "
  653. "mapped logical drives. "),
  654. MappingStrings{"Chkntfs.exe"},
  655. Values{ "No Error",
  656. "Error - Remote Drive",
  657. "Error - Removable Drive",
  658. "Error - Drive Not Root Directory",
  659. "Error - Unknown Drive" }]
  660. uint32 ScheduleAutoChk(
  661. [in,
  662. Description("This parameter is used to specify the list of "
  663. "drives that should be scheduled for autochk at next reboot. "
  664. "The string syntax consists of the the drive letter for the "
  665. "logical disk.")]
  666. string LogicalDisk[]
  667. );
  668. [Static,
  669. Implemented,
  670. Description("This method is used exclude disks from the chkdsk "
  671. "operation to be run at the next reboot. If not excluded, chkdsk "
  672. "is performed on the disk if the dirty bit has been set for the disk. "
  673. "Note that the calls to exclude disks are not cumulative. That is, "
  674. "if a call is made to excluded some disks, then the new list is "
  675. "not added to the list of ones that were already marked for "
  676. "exclusion, instead the new list of disks overwrites "
  677. "the previous one. The method is applicable to only those "
  678. "instances of logical disk that represent a physical "
  679. "disk in the machine and is not applicable to mapped logical "
  680. "drives. \n"
  681. "For example, a valid specification of drives would be \"C:\", \"d:\",\"G:\" "
  682. "Note that the colon is required with the drive letter."),
  683. MappingStrings{"Chkntfs.exe"},
  684. Values{ "Success",
  685. "Error - Remote Drive",
  686. "Error - Removable Drive",
  687. "Error - Drive Not Root Directory",
  688. "Error - Unknown Drive" } ]
  689. uint32 ExcludeFromAutochk(
  690. [in,
  691. Description("This parameter is used to specify the list of "
  692. "drives that should be excluded from autochk at next reboot. "
  693. "The string syntax consists of the the drive letter followed "
  694. "by a colon for the logical disk.")]
  695. string LogicalDisk[]
  696. );
  697. };
  698. [Dynamic, Provider ("CIMWin32") ,
  699. Description ("The Win32_DiskPartition class represents the "
  700. "capabilities and management capacity of a partitioned area of a "
  701. "physical disk on a Win32 system.\nExample: Disk #0, "
  702. "Partition #1."): ToSubClass,
  703. Locale (0x409), UUID ("{8502C4B8-5FBB-11D2-AAC1-006008C78BC7}") ]
  704. class Win32_DiskPartition:CIM_DiskPartition
  705. {
  706. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  707. Description ("The DeviceID property contains a string that "
  708. "uniquely identifies the disk drive and partition from the "
  709. "rest of the system"): ToSubClass,
  710. MappingStrings {"WMI"}: ToSubClass]
  711. string DeviceID ;
  712. [read : ToSubClass ,
  713. Description ("The BootPartition property determines whether the "
  714. "partition is the active partition. The operating system uses "
  715. "the active partition when booting from a hard disk.\nValues: TRUE or "
  716. "FALSE. If TRUE, the partition is active."): ToSubClass,
  717. MappingStrings {"Win32API|File Functions|ReadFile"}: ToSubClass]
  718. boolean BootPartition ;
  719. [read : ToSubClass ,
  720. Description ("The DiskIndex property indicates the index number "
  721. "of the disk containing this partition.\nExample: 0."): ToSubClass,
  722. MappingStrings {"Win32API|File Functions|ReadFile"}: ToSubClass]
  723. uint32 DiskIndex ;
  724. [read : ToSubClass ,
  725. Description ("The HiddenSectors property indicates the number of "
  726. "hidden sectors in the partition.\nExample: 63"): ToSubClass,
  727. MappingStrings {"Win32API"}: ToSubClass ]
  728. uint32 HiddenSectors ;
  729. [read : ToSubClass ,
  730. Description ("The Index property indicates the index number of the "
  731. "partition.\nExample: 1"): ToSubClass,
  732. MappingStrings {"WMI"}: ToSubClass ]
  733. uint32 Index ;
  734. [read : ToSubClass ,
  735. Description ("The RewritePartition property specifies whether "
  736. "the partition information has changed. When you change a partition "
  737. "(with IOCTL_DISK_SET_DRIVE_LAYOUT), the system uses this property member "
  738. "to determine which partitions have changed and need their "
  739. "information rewritten.\nValues: TRUE or FALSE. If TRUE, the "
  740. "partition needs to be rewritten."): ToSubClass,
  741. MappingStrings {"Win32API|Device Input and Output Structures|"
  742. "PARTITION_INFORMATION|RewritePartition"}: ToSubClass ]
  743. boolean RewritePartition ;
  744. [read : ToSubClass, units ("Bytes") : ToSubClass,
  745. Description ("The Size property indicates the total size (in bytes) "
  746. "of the partition.\nExample: 1059045376"): ToSubClass ,
  747. MappingStrings {"Win32API|File Functions|ReadFile"}: ToSubClass]
  748. uint64 Size ;
  749. [read : ToSubClass , units ("Bytes") : ToSubClass,
  750. Description ("The StartingOffset property indicates the starting "
  751. "offset (in bytes) of the partition.\nExample: 32256"): ToSubClass ,
  752. MappingStrings {"Win32API|File Functions|ReadFile"}: ToSubClass ]
  753. uint64 StartingOffset ;
  754. [read : ToSubClass,
  755. Description ("The Type property indicates the type of the "
  756. "partition."): ToSubClass,
  757. MappingStrings {"Win32API|PartitionRecord|dwPartitionType"}: ToSubClass,
  758. Values {"Unused", "12-bit FAT", "Xenix Type 1", "Xenix Type 2",
  759. "16-bit FAT", "Extended Partition", "MS-DOS V4 Huge",
  760. "Installable File System", "PowerPC Reference Platform", "UNIX",
  761. "NTFS", "Win95 w/Extended Int 13", "Extended w/Extended Int 13",
  762. "Logical Disk Manager", "Unknown"}: ToSubClass]
  763. string Type ;
  764. };
  765. //RuleBased("Select * From "
  766. // "Win32_DiskDrive As A "
  767. // "Join "
  768. // "Win32_DiskPartition As B "
  769. // "On A.Index = B.DiskIndex")
  770. [Dynamic, Provider ("CIMWin32"),
  771. Description ("The Win32_DiskDriveToDiskPartition class represents an "
  772. "association between a disk drive and a partition existing on "
  773. "it."): ToSubClass,
  774. Locale (0x409), UUID ("{8502C4F9-5FBB-11D2-AAC1-006008C78BC7}") ]
  775. class Win32_DiskDriveToDiskPartition:CIM_MediaPresent
  776. {
  777. [read: ToSubClass, key: ToSubClass, Override ("Antecedent"): ToSubClass,
  778. Description ("The Antecedent reference represents the "
  779. "Win32_DiskDrive containing the properties of the disk drive "
  780. "where the partition exists."): ToSubClass,
  781. MappingStrings {"WMI|Win32_DiskDrive"}: ToSubClass]
  782. Win32_DiskDrive REF Antecedent;
  783. [read: ToSubClass, key: ToSubClass, Override ("Dependent"): ToSubClass,
  784. Description ("The Dependent reference represents the "
  785. "Win32_DiskPartition containing the properties of a disk "
  786. "partition residing on the disk drive."): ToSubClass,
  787. MappingStrings {"WMI|Win32_DiskPartition"}: ToSubClass]
  788. Win32_DiskPartition REF Dependent;
  789. };
  790. [Dynamic, Provider ("CIMWin32") ,
  791. Description ("The Win32_LogicalDiskToPartition class represents an "
  792. "association between a logical disk drive and the disk partition it "
  793. "resides on."): ToSubClass,
  794. Locale (0x409), UUID ("{8502C4FB-5FBB-11D2-AAC1-006008C78BC7}") ]
  795. class Win32_LogicalDiskToPartition:CIM_LogicalDiskBasedOnPartition
  796. {
  797. [read: ToSubClass, key: ToSubClass, Override ("Dependent"): ToSubClass,
  798. Description ("The Dependent reference represents the "
  799. "Win32_LogicalDisk containing the properties of a logical disk "
  800. "that resides on a physical disk partition."): ToSubClass,
  801. MappingStrings {"WMI|Win32_LogicalDisk"}: ToSubClass ]
  802. Win32_LogicalDisk REF Dependent;
  803. [read: ToSubClass, key: ToSubClass, Override ("Antecedent"): ToSubClass,
  804. Description ("The Antecedent reference represents the "
  805. "Win32_DiskPartition containing the properties of a disk partition "
  806. "where the logical disk resides."): ToSubClass,
  807. MappingStrings {"WMI|Win32_DiskPartition"}: ToSubClass]
  808. Win32_DiskPartition REF Antecedent;
  809. };
  810. [Dynamic,
  811. Provider("CIMWin32"), SupportsUpdate,
  812. Description("This class represents the settings for the autochk "
  813. "operation for a disk. The setting applies to all disks on the "
  814. "computer system. Note "
  815. "that the settings are applicable only to instances of logical disk that "
  816. "represent physical disks on the machine and not to mapped drives."),
  817. Locale (0x409)]
  818. class Win32_AutochkSetting : CIM_Setting {
  819. [Override("SettingId"),
  820. Key]
  821. string SettingID;
  822. [Read,Write,
  823. Description(" The UserInputDelay property indicates the time to wait, "
  824. "in seconds, for the user to hit any key before it begins to autochk "
  825. "the disks."),
  826. Units("Seconds"),
  827. MappingStrings{"Win32Registry | HKLM\\CurrentControlSet\\Control\\Session Manager | AutoChkTimeOut"}]
  828. uint32 UserInputDelay;
  829. };
  830. //RuleBased("Select * From "
  831. // "Win32_OperatingSystem As A "
  832. // "Join "
  833. // "Win32_AutochkSetting As B "
  834. // "On A.Name = B.SettingID")
  835. [Dynamic,
  836. Provider("CIMWin32a"),
  837. Description("This class represents the association between an operating "
  838. "system and the autochk settings that apply to the disks on the machine."
  839. "Note that the setting is associated to operating system rather than "
  840. "computer system since there can be one or more operating systems "
  841. "installed on the machine, each with its own autochk settings."),
  842. Locale (0x409)]
  843. class Win32_OperatingSystemAutochkSetting : CIM_ElementSetting {
  844. [Override("Element"),
  845. key]
  846. Win32_OperatingSystem REF Element;
  847. [Override("Setting"),
  848. key]
  849. Win32_AutochkSetting REF Setting;
  850. };
  851. [Dynamic, Provider ("CIMWin32") ,
  852. Description ("The Win32_MappedLogicalDisk class represents a "
  853. "network storage devices that are mapped as logical disks "
  854. "on the computer system. The instances returned for this class "
  855. "will be as follows.\n"
  856. "If user A is enumerating the instances, then the provider "
  857. "will look for a logon session of user A on that machine. If "
  858. "there is one (and only one) such logon session, then the "
  859. "provider will return the mapped drives of that session. "
  860. "If there is more than one session that user A has on the "
  861. "machine, then no mapped drive instances will be returned "
  862. "(since the provider has no reasonable way of deciding "
  863. "which session to use). If there are no sessions of user "
  864. "A running, and there is a locally logged on user B, then "
  865. "the provider will impersonate A and return the mapped "
  866. "drives of user B. This case supports the scenario of "
  867. "helpdesk wanting to see the instances of a locally "
  868. "logged on user. Again, if there is more than one session "
  869. "of user B running on the machine, then the provider has "
  870. "no way of deciding which to use. In this case no mapped "
  871. "drive instances will be returned."): ToSubClass,
  872. Locale (0x409),
  873. UUID ("{BCF02FFE-5560-4de2-B419-272918693426}") ]
  874. class Win32_MappedLogicalDisk : CIM_LogicalDisk {
  875. [Key,
  876. Read,
  877. Override("DeviceId"),
  878. MappingStrings {"WMI"}]
  879. string DeviceID ;
  880. [Key,
  881. Description("The SessionId property indicates the id of the session "
  882. "used by the user connected to the computer system. The user may be "
  883. "connected to the system via a local logon or via a terminal session.")]
  884. string SessionID;
  885. [read : ToSubClass ,
  886. Description ("The Compressed property indicates whether the logical "
  887. "volume exists as a single compressed entity, such as a DoubleSpace "
  888. "volume. If file based compression is supported (such as on NTFS), "
  889. "this property will be FALSE."): ToSubClass,
  890. MappingStrings {"Win32API|File System Functions|"
  891. "GetVolumeInformation|FS_VOL_IS_COMPRESSED"}: ToSubClass]
  892. boolean Compressed ;
  893. [read : ToSubClass ,
  894. Description ("The FileSystem property indicates the file system on "
  895. "the logical disk.\nExample: NTFS"): ToSubClass ,
  896. MappingStrings {"Win32API|File System Functions|"
  897. "GetVolumeInformation"}: ToSubClass]
  898. string FileSystem ;
  899. [read : ToSubClass ,
  900. Description ("The MaximumComponentLength property contains the "
  901. "maximum length of a filename component supported by the Win32 drive. "
  902. "A filename component is that portion of a filename "
  903. "between backslashes. The value can be used to indicate that long "
  904. "names are supported by the specified file system. For example, "
  905. "for a FAT file system supporting long names, the function stores "
  906. "the value 255, rather than the previous 8.3 indicator. Long names "
  907. "can also be supported on systems that use the NTFS file system."
  908. "\nExample: 255"): ToSubClass,
  909. MappingStrings {"Win32API|File System Functions|"
  910. "GetVolumeInformation"}: ToSubClass ]
  911. uint32 MaximumComponentLength ;
  912. [read : ToSubClass ,
  913. Description ("The SupportsFileBasedCompression property indicates "
  914. "whether the logical disk partition supports file based compression, "
  915. "such as is the case with NTFS. This property is FALSE, when the "
  916. "Compressed property is TRUE.\nValues: TRUE or FALSE. If TRUE, the "
  917. "logical disk supports file based compression."): ToSubClass ,
  918. MappingStrings {"Win32API|File System Functions|"
  919. "GetVolumeInformation|FS_FILE_COMPRESSION"}: ToSubClass]
  920. boolean SupportsFileBasedCompression ;
  921. [read : ToSubClass , write: ToSubClass ,
  922. Description ("The VolumeName property indicates the volume name of "
  923. "the logical disk.\nConstraints: Maximum 32 characters"): ToSubClass,
  924. MappingStrings {"Win32API|File System Functions|"
  925. "GetVolumeInformation"}: ToSubClass]
  926. string VolumeName ;
  927. [read : ToSubClass,
  928. Description ("The VolumeSerialNumber property indicates the volume "
  929. "serial number of the logical disk.\nConstraints: Maximum 11 characters"
  930. "\nExample: A8C3-D032"): ToSubClass,
  931. MappingStrings {"Win32API|File System Functions|"
  932. "GetVolumeInformation"}: ToSubClass ]
  933. string VolumeSerialNumber ;
  934. [read, Description ("The SupportsDiskQuotas property indicates whether "
  935. "this volume supports disk Quotas")
  936. ]
  937. boolean SupportsDiskQuotas;
  938. [read, Description ("The QuotasDisabled property indicates that "
  939. "Quota management is not enabled on this volume.")
  940. ]
  941. boolean QuotasDisabled;
  942. [read, Description ("The QuotasIncomplete property indicates that Quota "
  943. "management was used but has been disabled. Incomplete refers to the "
  944. "information left in the file system after quota management has been "
  945. "disabled.")
  946. ]
  947. boolean QuotasIncomplete;
  948. [read, Description ("The QuotasRebuilding property indicates an active "
  949. "state signifying that the file system is in process of compiling "
  950. "information and setting the disk up for quota management.")
  951. ]
  952. boolean QuotasRebuilding;
  953. [Description ("The ProviderName property indicates the network path "
  954. "name to the logical device."): ToSubClass ,
  955. MappingStrings {"Win32API|Windows Networking Functions|"
  956. "WNetGetConnection"}: ToSubClass]
  957. string ProviderName ;
  958. };
  959. //RuleBased("Select * From "
  960. // "Win32_LogonSession As A "
  961. // "Join "
  962. // "Win32_MappedLogicalDisk As B "
  963. // "On A.LogonId = B.SessionId")
  964. [Dynamic, Provider ("CIMWin32a") ,
  965. Description("The Win32_LogonSessionMappedDisk class represents an "
  966. "association between a logon session and the mapped logical disks "
  967. "defined within the session."),
  968. Locale (0x409)]
  969. class Win32_LogonSessionMappedDisk : CIM_Dependency {
  970. [Description("The Antecedent property references a logon session."),
  971. Override("Antecedent"),
  972. Key]
  973. Win32_LogonSession REF Antecedent;
  974. [Description("The Dependent property references a mapped logical "
  975. "disk defined within the session referenced by the Antecedent "
  976. "property."),
  977. Override("Dependent"),
  978. Key]
  979. Win32_MappedLogicalDisk REF Dependent;
  980. };