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.

136 lines
5.3 KiB

  1. <?xml version="1.0"?>
  2. <!-- ====================================== -->
  3. <!-- XML Schema for WMI -->
  4. <!-- Copyright 2000 Microsoft Corporation -->
  5. <!-- ====================================== -->
  6. <schema xmlns="http://www.w3.org/1999/XMLSchema"
  7. xmlns:soap="http://schemas.xmlsoap.org/soap/encoding"
  8. xmlns:wmi="http://www.microsoft.com/WMI/encoding"
  9. targetNamespace="http://www.microsoft.com/WMI/appInfo"
  10. xmlns:tns="http://www.microsoft.com/WMI/appInfo" >
  11. <!-- ============================================== -->
  12. <!-- Definitions of Qualifiers -->
  13. <!-- ============================================== -->
  14. <!-- This complex type represents a qualifier.-->
  15. <!-- A qualifier has a type, name and value (all mandatory) and flavor-->
  16. <complexType name="qualifier" content="empty">
  17. <!-- The name of the qualifier -->
  18. <attribute name="name" use="required" type="string"/>
  19. <!-- The type of the qualifier -->
  20. <attribute name="type" use="required">
  21. <!-- The list of WMI Qualifier types -->
  22. <simpleType name="qualifierTypes" base="string">
  23. <enumeration value="boolean"/>
  24. <enumeration value="string"/>
  25. <enumeration value="sint32"/>
  26. <enumeration value="real64"/>
  27. </simpleType>
  28. </attribute>
  29. <!-- Whether it is an array -->
  30. <attribute name="array" type="boolean" value="true"/>
  31. <!-- The value of the qualifier -->
  32. <attribute name="value" use="required" type="string"/>
  33. <!-- Qualifier Flavor attributes -->
  34. <!-- Does this make sense for parameter qualfiers ?-->
  35. <!-- Attributes for Qualifier Flavors -->
  36. <attribute name="overridable" type="boolean" value="true"/>
  37. <attribute name="toSubClass" type="boolean" value="false"/>
  38. <attribute name="toInstance" type="boolean" value="false"/>
  39. <attribute name="amended" type="boolean" value="false"/>
  40. </complexType>
  41. <!-- ================================= -->
  42. <!-- Definition of a Property -->
  43. <!-- This is the same as xsd:element, -->
  44. <!-- but with a few added attributes -->
  45. <!-- and also the qualifiers and the -->
  46. <!-- default value of the property -->
  47. <!-- ================================= -->
  48. <element name="property" >
  49. <complexType base="element" derivedBy="extension">
  50. <element name="qualifier" type="qualifier" minOccurs="0" maxOccurs="unbounded"/>
  51. <attribute name="refClass" type="string" use="optional"/>
  52. <attribute name="default" type="string" use="optional"/>
  53. </complexType>
  54. </element>
  55. <!-- ================================= -->
  56. <!-- Definition of a Method -->
  57. <!-- ================================= -->
  58. <element name="method">
  59. <complexType content="elementOnly">
  60. <!-- A set of qualifiers for the method-->
  61. <element name="qualifier" minOccurs="0" maxOccurs="unbounded" type="wmi:qualifier"/>
  62. <!-- A set of parameters for the method-->
  63. <element name="parameter" minOccurs="0" maxOccurs="unbounded">
  64. <!-- This complex type represents a Method parameter.-->
  65. <complexType name="parameter">
  66. <!-- A set of qualifiers for the parameter-->
  67. <element name="qualifier" minOccurs="0" maxOccurs="unbounded" type="qualifier"/>
  68. <!-- The name of the parameter -->
  69. <attribute name="name" use="required" type="string"/>
  70. <!-- The type of the parameter -->
  71. <attribute name="type" use="required">
  72. <!-- The list of primitive WMI scalar types for parameters-->
  73. <simpleType base="string">
  74. <enumeration value="boolean"/>
  75. <enumeration value="string"/>
  76. <enumeration value="char16"/>
  77. <enumeration value="uint8"/>
  78. <enumeration value="sint8"/>
  79. <enumeration value="uint16"/>
  80. <enumeration value="sint16"/>
  81. <enumeration value="uint32"/>
  82. <enumeration value="sint32"/>
  83. <enumeration value="uint64"/>
  84. <enumeration value="sint64"/>
  85. <enumeration value="datetime"/>
  86. <enumeration value="real32"/>
  87. <enumeration value="real64"/>
  88. <enumeration value="ref"/>
  89. <enumeration value="obj"/>
  90. </simpleType>
  91. </attribute>
  92. <!-- This represents a reference class and is present only if the "type" attribute has a value of "ref" or "obj"-->
  93. <attribute name="referenceClass" type="string"/>
  94. <!-- Indicates whether the type is an array -->
  95. <attribute name="isArray" type="boolean"/>
  96. </complexType>
  97. </element>
  98. <!-- The Name of the method -->
  99. <attribute name="name" use="required" type="string"/>
  100. <!-- The Type of Return Value of the method -->
  101. <attribute name="name">
  102. <!-- The list of types allowed for WMI method return values-->
  103. <simpleType base="string">
  104. <enumeration value="boolean"/>
  105. <enumeration value="string"/>
  106. <enumeration value="char16"/>
  107. <enumeration value="uint8"/>
  108. <enumeration value="sint8"/>
  109. <enumeration value="uint16"/>
  110. <enumeration value="sint16"/>
  111. <enumeration value="uint32"/>
  112. <enumeration value="sint32"/>
  113. <enumeration value="uint64"/>
  114. <enumeration value="sint64"/>
  115. <enumeration value="datetime"/>
  116. <enumeration value="real32"/>
  117. <enumeration value="real64"/>
  118. <enumeration value="ref"/>
  119. <enumeration value="obj"/>
  120. </simpleType>
  121. </attribute>
  122. </complexType>
  123. </element>
  124. </schema>