다음을 통해 공유


Datastore XML File Example (Windows CE 5.0)

Send Feedback

The following links connect to segments of a typical datastore XML file that defines the following services from the Core Connectivity infrastructure.

  • Global Properties
  • SDKs
  • Devices
  • OS Images
  • Service Categories
  • Packages

In the following example datastore XML definitions, all IDs for devices, SDKs, services, and so on, contain the placeholder "xyz."

Global Properties

This example shows major and minor OS versions, build number, and install path.

<Properties>
   <Version>
      <Major>5</Major>
      <Minor>20</Minor>
      <Build>2134</Build>
   </Version>
   <InstallPath>xyz</InstallPath>
   <Custom>...</Custom>
</Properties>

SDKs

This example shows two SDK installations:

  • Installation 1: Pocket Media

    This example shows a definition for a Pocket Media SDK that specifies an emulator target device and a generic Pocket Mobile target device.

       <SDK Name="Pocket Media SDK 2003" ID="xyz">
          <Properties></Properties>
          <Devices>
             <Device Name="Emulator device" ID="xyz">
                <Properties>
                   <ServiceMap>
                      <Category ID="xyz"</Category>
                      <Category ID="xyz"</Category>
                   </ServiceMap>
                </Properties>
             </Device>
             <Device Name="Pocket Mobile device" ID="xyz">
                <Properties>
                   <ServiceMap>
                      <Category ID="xyz"</Category>
                      <Category ID="xyz"</Category>
                   </ServiceMap>
                </Properties>
             </Device>
          </Devices>
       <Projects></Projects>
    </SDK>
    
  • Installation 2: Smartphone

    This example shows a definition for a Smartphone SDK that specifies an emulator target device and a generic Smartphone target device.

       <SDK Name="Smartphone SDK 2003" ID="xyz">
          <Properties></Properties>
          <Devices>
             <Device Name="Emulator device" ID="xyz">
                <Properties>      
                   <ServiceMap>
                      <Category ID="xyz"</Category>
                      <Category ID="xyz"</Category>
                   </ServiceMap>
                </Properties>
             </Device>
             <Device Name="Smartphone device" ID="xyz">
                <Properties>      
                   <ServiceMap>
                      <Category ID="xyz"</Category>
                      <Category ID="xyz"</Category>
                   </ServiceMap>
                </Properties>
             </Device>
          </Devices>
          <Projects></Projects>
       </SDK>
    

Devices

This example shows three definitions for target devices.

  • Definition 1: Xscale target hardware

    This example shows a definition for Xscale target hardware, and specifies a serial kernel bootstrap service and serial kernel transport service.

    <Devices>
       <Device Name="My Xscale" ID=""xyz">
          <Properties>
             <DeviceName>XSC101123</DeviceName>
             <ServiceMap>
                <Category Name="Kernel Bootstrap">Serial</Category>
                <Category Name="Kernel Transport">Serial</Category>
             </ServiceMap>
          </Properties>
       </Device>
    
  • Definition 2: Device Emulator

    This example shows a Device Emulator definition that specifies a Device Emulator kernel bootstrap service and an Ethernet kernel transport service.

    <Devices>
       <Device Name="My Emulator" ID="xyz">
          <Properties>
             <DeviceName>Device Emulator</DeviceName>
             <ServiceMap>
                <Category Name="Kernel Bootstrap">DeviceEmulator</Category>
                <Category Name="Kernel Transport">Ethernet</Category>
             </ServiceMap>
             <OSImage>"xyz"</OSImage>
          </Properties>
       </Device>
    </Devices>
    

OS Images

This example shows two run-time image installations.

  • Installation 1: Enterprise web pad Emulator

    This example shows a run-time image that installs no associated SDKs.

    <OSImages>
       <OSImage Name="Webpad enterprise Emulator image" ID=""xyz">
          <Properties>
             <SDK></SDK>
          </Properties>
       </OSImage>
    
  • Installation 2: Pocket Mobile IA

    This example shows a run-time image that installs a user-defined SDK.

    <OSImages>
       <OSImage Name="Pocket Mobile IA image" ID="xyz">
          <Properties>
             <SDK>499B945A-65A6-481B-B966-6344A7190BB6</SDK>
          </Properties>
       </OSImage>
    </OSImages>
    

Service Categories

This example defines four standard Core Connectivity service categories.

  • Category 1: Application Transport

    This example shows an Application Transport definition that specifies TCP/IP, KITL, and ActiveSync services.

    <ServiceCategories>
       <ServiceCategory Name="Application Transport" ID="xyz">
          <Properties></Properties>
          <ServiceInfos>
             <ServiceInfo Name="TCP/IP" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="KITL" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="ActiveSync" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
          </ServiceInfos>
       </ServiceCategory>
    
  • Category 2: Application Download

    This example shows an Application Download definition that specifies DMA-Emulator, KITL, and ActiveSync services.

       <ServiceCategory Name="Application Bootstrap" ID="xyz">
          <Properties></Properties>
          <ServiceInfos>
             <ServiceInfo Name="DMAEmulator" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="KITL" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="ActiveSync" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
          </ServiceInfos>
       </ServiceCategory>
    
  • Category 3: Kernel Transport

    This example shows a Kernel Transport definition that specifies Ethernet and Serial services.

       <ServiceCategory Name="Kernel Transport" ID="xyz">
          <Properties></Properties>
          <ServiceInfos>
             <ServiceInfo Name="Ethernet" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="Serial" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
          </ServiceInfos>
       </ServiceCategory>
    
  • Category 4. Kernel Download

    This example shows a Kernel Bootstrap definition that specifies Ethernet, Serial, and DMA-Emulator services.

       <ServiceCategory Name="Kernel Bootstrap" ID="xyz">
          <Properties></Properties>
          <ServiceInfos>
             <ServiceInfo Name="Ethernet" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="Serial" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
             <ServiceInfo Name="DMA (Emulator)" ID="xyz">
                <Properties>
                   <CLSID>"xyz"</CLSID>
                </Properties>
             </ServiceInfo>
          </ServiceInfos>
       </ServiceCategory>
    </ServiceCategories>
    

Packages

This example shows two definitions for software package installations, the Remote Process Viewer and the Remote File Viewer.

  • Definition 1: Remote Process Viewer

    The Remote Process Viewer includes package types for the ARMV4 and x86 processor families.

    <Packages>
       <Package Name="Remote Process Viewer" ID="xyz">
          <Properties></Properties>
          <PackageTypes>
             <PackageType Name="ARMV4" ID="xyz">
                <Properties></Properties>
                <Files>
                   <File Name="cepwcli" ID="xyz">
                      <Properties></Properties>
                   </File>
                   <File Name="toolhelp" ID="xyz">
                      <Properties></Properties>
                   </File>
                </Files>
             </PackageType>
             <PackageType Name="X86" ID="xyz">
                <Properties></Properties>
                <Files>
                   <File Name="cepwcli" ID="xyz">
                      <Properties></Properties>
                   </File>
                   <File Name="toolhelp" ID="xyz">
                      <Properties></Properties>
                   </File>
                </Files>
             </PackageType>
          </PackageTypes>
       </Package>
    
  • Definition 2: Remote File Viewer

    The Remote File Viewer includes package types for the ARMV4 and x86 processor families.

       <Package Name="Remote File Viewer" ID="xyz">
       <Properties></Properties>
       <PackageTypes>
       <PackageType Name="ARMV4" ID="xyz">
          <Properties></Properties>
             <Files>
                <File Name="cefwcli" ID="xyz">
                   <Properties></Properties>
                </File>
             </Files>
          </PackageType>
          <PackageType Name="X86" ID="xyz">
             <Properties></Properties>
             <Files>
                   <File Name="cefwcli" ID="xyz">
                      <Properties></Properties>
                   </File>
                </Files>
             </PackageType>
          </PackageTypes>
       </Package>
    </Packages>
    

See Also

Datastore Model | Datastore Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.