Advertisement
h0x0d

Windows 10 10532 Server Manifest Schema

Aug 28th, 2015
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.05 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- @@BEGIN_SDKSPLIT
  3.  
  4.  THRESHOLD SERVER MANIFEST SCHEMA
  5.  
  6.  This is the Schema that defines elements and attributes for Server
  7.  features in Thresold.  These types are imported into the Foundation
  8.  schema and included in products that support Server.
  9.  
  10.  !!!WARNING!!!
  11.  
  12.  Don't make any changes to this schema.  Changes will affect a wide range of
  13.  partners and can potentially break product and test code, as well as existing
  14.  .appx packages and manifests.  Please contact 'manifest' alias if you need to
  15.  request any addition or modification.
  16.  
  17. @@END_SDKSPLIT -->
  18. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
  19.           xmlns:xs="http://www.w3.org/2001/XMLSchema"
  20.           targetNamespace="http://schemas.microsoft.com/appx/manifest/server/windows10"
  21.           xmlns="http://schemas.microsoft.com/appx/manifest/server/windows10"
  22.           xmlns:t="http://schemas.microsoft.com/appx/manifest/types"
  23.           xmlns:f="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  24.           xmlns:server="http://schemas.microsoft.com/appx/manifest/server/windows10"
  25.           >
  26.  
  27.   <xs:import namespace="http://schemas.microsoft.com/appx/manifest/types"/>
  28.   <xs:import namespace="http://schemas.microsoft.com/appx/manifest/foundation/windows10"/>
  29.  
  30.   <!-- Application extensions in the Server namespace    -->
  31.  
  32.   <xs:simpleType name="ST_ApplicationExtensionCategory_Server">
  33.     <xs:restriction base="xs:string">
  34.       <xs:enumeration value="windows.ntservice"/>
  35.     </xs:restriction>
  36.   </xs:simpleType>
  37.  
  38.   <xs:element name="Extension" substitutionGroup="f:ApplicationExtensionChoice">
  39.     <xs:complexType>
  40.       <xs:choice minOccurs="0">
  41.         <xs:element name="NTServices" type="CT_NTServices" minOccurs="0" maxOccurs="1"/>
  42.       </xs:choice>
  43.       <xs:attribute name="Category" type="ST_ApplicationExtensionCategory_Server" use="required"/>
  44.       <xs:attributeGroup ref="t:ExtensionBaseAttributes"/>
  45.     </xs:complexType>
  46.     <xs:unique name="ServiceName">
  47.       <xs:selector xpath="server:NTServices/server:NTService"/>
  48.       <xs:field xpath="@Name"/>
  49.     </xs:unique>
  50.     <xs:unique name="ServiceDependencyName">
  51.       <xs:selector xpath="server:NTServices/server:NTService/server:ServiceDependencies/server:ServiceDependency"/>
  52.       <xs:field xpath="@Name"/>
  53.     </xs:unique>
  54.   </xs:element>
  55.  
  56.  
  57.   <!-- TYPES  used by elements in the Server namespace    -->
  58.  
  59.   <xs:complexType name="CT_NTServices">
  60.     <xs:sequence>
  61.       <xs:element name="NTService" type="CT_NTService" minOccurs="1" maxOccurs="100"/>
  62.     </xs:sequence>
  63.   </xs:complexType>
  64.  
  65.   <xs:complexType name="CT_NTService">
  66.  
  67.     <xs:all>
  68.       <xs:element name="ServiceDependencies" type="CT_ServiceDependencies" minOccurs="0"/>
  69.     </xs:all>
  70.  
  71.     <xs:attribute name="Name" type="ST_ServiceName" use="required"/>
  72.     <xs:attribute name="ImagePath" type="t:ST_NonEmptyString" use="required"/>
  73.     <xs:attribute name="Start" type="ST_ServiceStart" use="required"/>
  74.     <xs:attribute name="StartAccount" type="ST_StartAccount" use="required"/>
  75.  
  76.     <xs:attribute name="DisplayName" type="ST_DisplayName" use="optional"/>
  77.     <xs:attribute name="ErrorControl" type="ST_ServiceErrorControl" use="optional"/>
  78.     <xs:attribute name="Arguments" type="t:ST_NonEmptyString" use="optional"/>
  79.     <xs:attribute name="Description" type="t:ST_NonEmptyString" use="optional"/>
  80.     <xs:attribute name="FailureAction" type="ST_FailureAction" use="optional"/>
  81.    
  82.   </xs:complexType>
  83.  
  84.   <xs:complexType name ="CT_ServiceDependencies">
  85.     <xs:sequence>
  86.       <xs:element name="ServiceDependency" maxOccurs="10">
  87.         <xs:complexType>
  88.           <xs:attribute name="Name" type="ST_ServiceName" use="required"/>
  89.         </xs:complexType>
  90.       </xs:element>
  91.     </xs:sequence>
  92.   </xs:complexType>
  93.  
  94.   <xs:simpleType name="ST_ServiceName">
  95.     <xs:restriction base="t:ST_NonEmptyString">
  96.       <xs:maxLength value="256"/>
  97.     </xs:restriction>
  98.   </xs:simpleType>
  99.  
  100.   <xs:simpleType name="ST_ServiceStart">
  101.     <xs:restriction base="xs:string">
  102.       <xs:enumeration value="auto"/>
  103.       <xs:enumeration value="demand"/>
  104.     </xs:restriction>
  105.   </xs:simpleType>
  106.  
  107.   <xs:simpleType name="ST_DisplayName">
  108.     <xs:restriction base="t:ST_NonEmptyString">
  109.       <xs:maxLength value="256"/>
  110.     </xs:restriction>
  111.   </xs:simpleType>
  112.  
  113.   <xs:simpleType name="ST_ServiceErrorControl">
  114.     <xs:restriction base="xs:string">
  115.       <xs:enumeration value="ignore"/>
  116.       <xs:enumeration value="normal"/>
  117.     </xs:restriction>
  118.   </xs:simpleType>
  119.  
  120.   <xs:simpleType name="ST_StartAccount">
  121.     <xs:restriction base="xs:string">
  122.       <xs:enumeration value="localsystem"/>
  123.       <xs:enumeration value="localservice"/>
  124.       <xs:enumeration value="networkservice"/>
  125.     </xs:restriction>
  126.   </xs:simpleType>
  127.  
  128.   <xs:simpleType name="ST_FailureAction">
  129.     <xs:restriction base="xs:string">
  130.       <xs:enumeration value="none"/>
  131.       <xs:enumeration value="restart"/>      
  132.     </xs:restriction>
  133.   </xs:simpleType>
  134.  
  135. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement