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.

78 lines
2.0 KiB

  1. [WMI, Dynamic, Provider("WMIProv"),
  2. guid("{F4A80276-23B7-11d1-9ED9-00A0C9010057}"),
  3. localeid(0x409),
  4. WmiExpense(1),
  5. Description("A UINT to set")]
  6. class E100BExampleSetUINT_OID
  7. {
  8. [key, read]
  9. string InstanceName; // Instance name returned from WMI
  10. [read]
  11. boolean Active;
  12. [read, write,
  13. Description("Set this UINT then query it."),
  14. WmiDataId(1)] uint32 ExampleSetUINT_OID;
  15. };
  16. [WMI, Dynamic, Provider("WMIProv"),
  17. guid("{F4A80277-23B7-11d1-9ED9-00A0C9010057}"),
  18. localeid(0x409),
  19. WmiExpense(1),
  20. Description("A UINT to Query")]
  21. class E100BExampleQueryUINT_OID
  22. {
  23. [key, read]
  24. string InstanceName; // Instance name returned from WMI
  25. [read]
  26. boolean Active;
  27. [read,
  28. Description("Query this UINT and get back the set UINT + 1."),
  29. WmiDataId(1)] uint32 ExampleQueryUINT_OID;
  30. };
  31. [WMI, Dynamic, Provider("WMIProv"),
  32. guid("{F4A80278-23B7-11d1-9ED9-00A0C9010057}"),
  33. localeid(0x409),
  34. WmiExpense(1),
  35. Description("An Array to query (should be 4 bytes of MAC address)")]
  36. class E100BExampleQueryArrayOID
  37. {
  38. [key, read]
  39. string InstanceName; // Instance name returned from WMI
  40. [read]
  41. boolean Active;
  42. [read,
  43. Description("Number of array elements."),
  44. WmiDataId(1)] uint32 NumberElements;
  45. [read,
  46. Description("Query this array to get 4 bytes of MAC address."),
  47. WmiDataId(2),
  48. WmiSizeIs("NumberElements")] uint8 ExampleQueryArray[];
  49. };
  50. [WMI, Dynamic, Provider("WMIProv"),
  51. guid("{F4A80279-23B7-11d1-9ED9-00A0C9010057}"),
  52. localeid(0x409),
  53. WmiExpense(1),
  54. Description("An ANSI string to Query")]
  55. class E100BExampleQueryStringOID
  56. {
  57. [key, read]
  58. string InstanceName; // Instance name returned from WMI
  59. [read]
  60. boolean Active;
  61. [read,
  62. Description("Query this to get an ANSI string back (it will be the VENDORDESCRIPTOR string)."),
  63. WmiDataId(1)] string ExampleQueryStringOID;
  64. };