Source code of Windows XP (NT5)
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.

71 lines
1.5 KiB

  1. //
  2. // Wmi internal classes
  3. //
  4. class WMIEvent : __ExtrinsicEvent
  5. {
  6. };
  7. [WMI,
  8. guid("{c74aece4-468b-4113-b006-0cecdc968ac4}")]
  9. class SCSI_ADDR {
  10. [WmiDataId(1)] uint8 PortNumber;
  11. [WmiDataId(2)] uint8 ScsiPathId;
  12. [WmiDataId(3)] uint8 TargetId;
  13. [WmiDataId(4)] uint8 Lun;
  14. };
  15. [WMI,
  16. guid("{e69e581d-6580-4bc2-bad1-7eee85989086}")]
  17. class PDO_INFORMATION {
  18. [WmiDataId(1)] SCSI_ADDR ScsiAddress;
  19. //
  20. // The PathId here matches that of the ADAPTER_INFORMATION
  21. // class of this device's adapter.
  22. //
  23. [WmiDataId(2)] uint64 PathIdentifier;
  24. //
  25. // Matches the MPIO_CONTROLLER_INFO ControllerId of the controller
  26. // fronting this device.
  27. //
  28. [WmiDataId(3)] uint64 ControllerIdentifier;
  29. };
  30. //
  31. // Methods that actually do work are in class MPIO_EXECUTE
  32. //
  33. [WMI,
  34. Dynamic,
  35. Provider("WmiProv"),
  36. Description("Retrieve Object Information about a Multi-Path Disk."),
  37. Locale("MS\\0x409"),
  38. guid("{85134d46-d17c-4992-83f9-070dd4c48e0b}")]
  39. class MPIO_GET_DESCRIPTOR
  40. {
  41. [key, read]
  42. string InstanceName;
  43. [read] boolean Active;
  44. [WmiDataId(1),
  45. read,
  46. Description("Number of Port Objects backing the device.")
  47. ] uint32 NumberPdos;
  48. [WmiDataId(2),
  49. read,
  50. MaxLen(63),
  51. Description("Name of Device.")
  52. ] string DeviceName;
  53. [WmiDataId(3),
  54. read,
  55. Description("Array of Infomation classes describing the real device."),
  56. WmiSizeIs("NumberPdos")
  57. ] PDO_INFORMATION PdoInformation[];
  58. };