BEGIN_SDKSPLIT

  RS1 DESKTOP MANIFEST SCHEMA

  This is the Schema that defines elements and attributes for the Universal App
  Platform features in RS1.  These types are imported into the Foundation
  schema and included in products that support UAP.

  !!!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/desktop/windows10"
           xmlns="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
           xmlns:t="http://schemas.microsoft.com/appx/manifest/types"
           xmlns:f="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
           xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
           xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
           xmlns:uap8="http://schemas.microsoft.com/appx/manifest/uap/windows10/8"
           xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"
           xmlns:rescap5="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/5"
           >

  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/types"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/foundation/windows10"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/uap/windows10/8"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/5"/>

  <xs:element name="Extension" substitutionGroup="f:ApplicationExtensionChoice">
    <xs:complexType>
      <xs:choice minOccurs="0">
        <xs:element name="FullTrustProcess" type="CT_FullTrustProcess"/>
        <xs:element name="StartupTask" type="CT_StartupTask"/>
        <xs:element name="ToastNotificationActivation" type="CT_ToastNotificationActivation"/>
        <xs:element name="SearchProtocolHandler" type="CT_SearchProtocolHandler"/>
      </xs:choice>
      <xs:attribute name="Category" type="t:ST_ApplicationExtensionCategory_Desktop" use="required"/>
      <xs:attributeGroup ref="t:ExtensionBaseAttributes"/>
      <xs:attributeGroup ref="uap10:TrustLevelGroup"/>
    </xs:complexType>
    <xs:unique name="FullTrustProcessParameterGroup_GroupId">
      <xs:selector xpath="desktop:FullTrustProcess/desktop:ParameterGroup"/>
      <xs:field xpath="@GroupId"/>
    </xs:unique>
  </xs:element>

  <xs:complexType name="CT_FullTrustProcess">
    <xs:sequence>
      <xs:element name="ParameterGroup" minOccurs="0" maxOccurs="1000">
        <xs:complexType>
          <xs:attribute name="GroupId" type="xs:string" use="required"/>
          <xs:attribute name="Parameters" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="CT_StartupTask">
    <xs:attribute name="TaskId" type="t:ST_NonEmptyString" use="required"/>
    <xs:attribute name="Enabled" type="xs:boolean" use="optional"/>
    <xs:attribute name="DisplayName" type="t:ST_DisplayName" use="optional"/>
    <xs:attribute ref="rescap5:ImmediateRegistration" use="optional"/>
  </xs:complexType>

  <xs:complexType name="CT_ToastNotificationActivation">
    <xs:attribute name="ToastActivatorCLSID" type="t:ST_GUID" use="required"/>
  </xs:complexType>

  <xs:complexType name="CT_SearchProtocolHandler">
    <xs:sequence>
      <xs:element name="SearchProtocol" maxOccurs="100">
        <xs:complexType>
          <xs:attribute name="ProtocolName" type="t:ST_AlphaNumericString" use="required"/>
          <xs:attribute name="ProtocolActivatorCLSID" type="t:ST_GUID" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  
  <xs:element name="ExecutionAlias" substitutionGroup="uap3:ExecutionAliasChoice">
    <xs:complexType>
      <xs:attribute name="Alias" type="t:ST_ExecutableNoPath" use="required"/>
      <xs:attribute ref="uap8:AllowOverride" use="optional"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
