Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <!-- @@BEGIN_SDKSPLIT
- THRESHOLD SERVER MANIFEST SCHEMA
- This is the Schema that defines elements and attributes for Server
- features in Thresold. These types are imported into the Foundation
- schema and included in products that support Server.
- !!!WARNING!!!
- Don't make any changes to this schema. Changes will affect a wide range of
- partners and can potentially break product and test code, as well as existing
- .appx packages and manifests. Please contact 'manifest' alias if you need to
- request any addition or modification.
- @@END_SDKSPLIT -->
- <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://schemas.microsoft.com/appx/manifest/server/windows10"
- xmlns="http://schemas.microsoft.com/appx/manifest/server/windows10"
- xmlns:t="http://schemas.microsoft.com/appx/manifest/types"
- xmlns:f="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
- xmlns:server="http://schemas.microsoft.com/appx/manifest/server/windows10"
- >
- <xs:import namespace="http://schemas.microsoft.com/appx/manifest/types"/>
- <xs:import namespace="http://schemas.microsoft.com/appx/manifest/foundation/windows10"/>
- <!-- Application extensions in the Server namespace -->
- <xs:simpleType name="ST_ApplicationExtensionCategory_Server">
- <xs:restriction base="xs:string">
- <xs:enumeration value="windows.ntservice"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:element name="Extension" substitutionGroup="f:ApplicationExtensionChoice">
- <xs:complexType>
- <xs:choice minOccurs="0">
- <xs:element name="NTServices" type="CT_NTServices" minOccurs="0" maxOccurs="1"/>
- </xs:choice>
- <xs:attribute name="Category" type="ST_ApplicationExtensionCategory_Server" use="required"/>
- <xs:attributeGroup ref="t:ExtensionBaseAttributes"/>
- </xs:complexType>
- <xs:unique name="ServiceName">
- <xs:selector xpath="server:NTServices/server:NTService"/>
- <xs:field xpath="@Name"/>
- </xs:unique>
- <xs:unique name="ServiceDependencyName">
- <xs:selector xpath="server:NTServices/server:NTService/server:ServiceDependencies/server:ServiceDependency"/>
- <xs:field xpath="@Name"/>
- </xs:unique>
- </xs:element>
- <!-- TYPES used by elements in the Server namespace -->
- <xs:complexType name="CT_NTServices">
- <xs:sequence>
- <xs:element name="NTService" type="CT_NTService" minOccurs="1" maxOccurs="100"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="CT_NTService">
- <xs:all>
- <xs:element name="ServiceDependencies" type="CT_ServiceDependencies" minOccurs="0"/>
- </xs:all>
- <xs:attribute name="Name" type="ST_ServiceName" use="required"/>
- <xs:attribute name="ImagePath" type="t:ST_NonEmptyString" use="required"/>
- <xs:attribute name="Start" type="ST_ServiceStart" use="required"/>
- <xs:attribute name="StartAccount" type="ST_StartAccount" use="required"/>
- <xs:attribute name="DisplayName" type="ST_DisplayName" use="optional"/>
- <xs:attribute name="ErrorControl" type="ST_ServiceErrorControl" use="optional"/>
- <xs:attribute name="Arguments" type="t:ST_NonEmptyString" use="optional"/>
- <xs:attribute name="Description" type="t:ST_NonEmptyString" use="optional"/>
- <xs:attribute name="FailureAction" type="ST_FailureAction" use="optional"/>
- </xs:complexType>
- <xs:complexType name ="CT_ServiceDependencies">
- <xs:sequence>
- <xs:element name="ServiceDependency" maxOccurs="10">
- <xs:complexType>
- <xs:attribute name="Name" type="ST_ServiceName" use="required"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:simpleType name="ST_ServiceName">
- <xs:restriction base="t:ST_NonEmptyString">
- <xs:maxLength value="256"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ST_ServiceStart">
- <xs:restriction base="xs:string">
- <xs:enumeration value="auto"/>
- <xs:enumeration value="demand"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ST_DisplayName">
- <xs:restriction base="t:ST_NonEmptyString">
- <xs:maxLength value="256"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ST_ServiceErrorControl">
- <xs:restriction base="xs:string">
- <xs:enumeration value="ignore"/>
- <xs:enumeration value="normal"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ST_StartAccount">
- <xs:restriction base="xs:string">
- <xs:enumeration value="localsystem"/>
- <xs:enumeration value="localservice"/>
- <xs:enumeration value="networkservice"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="ST_FailureAction">
- <xs:restriction base="xs:string">
- <xs:enumeration value="none"/>
- <xs:enumeration value="restart"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement