Windows Embedded Standard 2009 Resource Kit - Download Center

... the Standard 2009 device. Run cscript prnmngr.vbs in a command window to
see the usage. ...... Place it in the %17% folder (WindowsInf). It is already in the ...

Part of the document


[pic]

















Microsoft Windows Embedded Standard 2009



Developer Resource Kit
























Componentizing Windows XP Professional for embedded systems developers

Author/Editor: Mark Spencer Chamberlain

Published: July 2009

Applies To: Microsoft Windows Embedded Standard 2009


[pic]


Copyright

The information contained in this document represents the current view of
Microsoft Corporation on the issues discussed as of the date of
publication. Because Microsoft must respond to changing market conditions,
it should not be interpreted to be a commitment on the part of Microsoft,
and Microsoft cannot guarantee the accuracy of any information presented
after the date of publication.
This white paper is for informational purposes only. MICROSOFT MAKES NO
WARRANTIES, EXPRESS OR IMPLIED, AS TO THE INFORMATION IN THIS DOCUMENT.
Complying with all applicable copyright laws is the responsibility of the
user. Without limiting the rights under copyright, no part of this document
may be reproduced, stored in or introduced into a retrieval system, or
transmitted in any form or by any means (electronic, mechanical,
photocopying, recording, or otherwise), or for any purpose, without the
express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or
other intellectual property rights covering subject matter in this
document. Except as expressly provided in any written license agreement
from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual
property.
The example companies, organizations, products, people and events depicted
herein are fictitious. No association with any real company, organization,
product, person or event is intended or should be inferred.
© 2006-2009 Microsoft Corporation. All rights reserved.
Microsoft, Active Directory, BizTalk, MSDN, Visual SourceSafe, Visual
Basic, Visual C#, Visual Studio, Windows, Windows NT and Windows XP are
either registered trademarks or trademarks of Microsoft Corporation in the
United States and/or other countries.
The names of actual companies and products mentioned herein may be the
trademarks of their respective owners.


Disclaimers

This document contains information adapted from many sources, including
MSDN®, and third-party developers. No functional guarantees are stipulated
regarding suggestions offered in this document. There is no guarantee that
a particular tip will function in every run-time scenario. Each Standard
2009 run-time image consists of a specific subset of Windows XP
Professional components chosen by each developer to accommodate specific
product requirements. The developer is ultimately responsible for creating
and deploying the test plan that is appropriate to the product. The
developer is strongly advised to fully test any tips used from this
document. These tests should be based upon the developer's unique product
requirements and operational environment.
Microsoft provides third-party contact information to help you find
technical support. This contact information may change without notice.
Microsoft does not guarantee the accuracy of this third-party contact
information.
The third-party products that this article discusses are manufactured by
companies that are independent of Microsoft. Microsoft makes no warranty,
implied or otherwise, regarding the performance or reliability of these
products.


Table of Contents


Chapter 1. Using this Document 1
Target audience 1
Embedded operating system version 3
About the author 3
Well deserved credit 3

Chapter 2. Overview and Evaluation 4

Introduction 4
Servicing multiple versions of Windows XP Embedded 6

Evaluating Windows Embedded Standard 2009 (Standard 2009) 7
On-line tutorial 7
Additional tutorials 7
Case studies 7
Supported target device processors 7
Microsoft Support Lifecycle considerations 8
Licensing considerations 8
Microsoft support 8

Security Updates 8

Product comparison 8
Comparison with Windows XP Professional 8
Comparison with Windows Embedded POSReady 9
Comparison with Windows NT Embedded 9

Chapter 3. Development Guide 10

Introduction 10

Installing Standard 2009 10
How to obtain 10
Installing 10
Problems installing Standard 2009 10
How do I obtain and configure Licensing Runtime PIDs? 11
How to upgrade your database to the licensed version 12

Developing your Standard 2009 Device 13
Introduction 13
Development Master Checklist 14

Quality Assurance Checklist 18
Introduction to the Windows Embedded Standard 2009 Component Manifest
18
Development Environment Audit 21
Functional Audit 22
Serviceability Audit 24
Security Audit 26
API Audit 27
Reliability Audit 27
Image Footprint Reduction 28

Testing and Deployment considerations 30

Configuring the User Interface (shell) 30
Different Shells for Different Users 31
Multiple user accounts 31
Enabling the context-sensitive Help 31
Removing the Windows splash screen after the Power On Self Test (POST)
31
How to replace the boot screen with one of your own. 31
How to disable "Windows is starting up" and "Windows is shutting down" type
messages 31
How to Customize the Welcome Screen behavior 32
Disabling the "Turn Off Computer" button on the Logon screen 32
Removing System and Application popups and Balloon tips 32
Adding "Manage" functionality when building a configuration 32
Enabling the classic Start menu 32
Automatically start applications or a custom shell upon startup 33
Removing the "Windows XP Embedded Evaluation" text in the shell 33
How to enable context menus for "right-click" functionality in the runtime
33
Changing the system font 33
Disabling the Ctrl+Alt+Del keyboard combination 33
Avoiding the Ctrl+Alt+Del splash screen 34
Creating shortcut resources 34
Centering the search pane in an Explorer file browser window 34
How to hide the shell task bar 34
Managing User Profiles and user settings 35
How to hide the mouse pointer 35
Configuring Internet Explorer as a full screen shell 35

Configuring Components 35
Automatic Logon 35
Bluetooth 35
.NET Framework 1.1 35
.NET Framework 2.0 36
.NET Framework 3.0 SP1 Setup 36
.NET Framework 3.5 Setup 36
File System 36
IIS 36
Internet Protocol Version 6 (IPV6) 36
MSDTC and Cloning 37
Network Command Shell 38
NTFS encrypted file system support 38
Security Template components 38
Sysprep (Windows System Preparation) 38
System Center Configuration Manager (SCCM) 39
Windows Firewall/Internet Connection Sharing (ICS) 39

Fine tuning 39
Hot plugging and hot swapping 39
How to identify the computer name 40
How to identify IP settings 40
Licensing issues when you install Office on a runtime 40
Applying locale settings to a run-time image 40
Adding Japanese, Korean, or Chinese IME components 40
Using Component Designer to create a Service Resource for a component
40
Moving Event Viewer logs to an unprotected volume 41
Using Standard 2009 to boot to a USB device 41
Runtimes and Antivirus Software 41
Netset tool 42
How to set the Time Zone offline in Target Designer 42
Where to turn on paging file support 43
How to move or rename your paging file in your runtime 43
How to clear the paging file 43
Make your runtime behave as if it is installed on drive C even though it is
installed on another partition 44
Initiating System Shutdown 45
Initiating System Hibernate 45
Bootvis system boot performance analysis tool 45
First Boot Agent 46
Duplicating images to many Compact Flash and Flash Module devices in a
production environment 46
Where to find a list of Microsoft Certified Hardware products 46
Does Microsoft support installation of Microsoft SQL Server into my
Standard 2009 runtime image? 46
Using SQL Server with Standard 2009 46
How can I edit the Registry of my XP Embedded image, before FBA has run?
47
Where can I find useful utility programs for use when developing a Standard
2009 Image? 47
How to apply a static IP address to the runtime 48

Multilingual User Interface (MUI) 48
More information about supported Languages and Locales 49

Using Development Tools 49
Target Analyzer 49
Target Designer 51
Component Designer 52
Creating driver components 54
Installing third party driver and applications after FBA completes 56
Installing a third party driver via rundll32 57

Chapter 4. Embedded Enabling Features 59

Introduction 59

BootPrep 59
Using BootPrep to prepare a storage device 59

USB Boot 60

Device Update Agent 61
Setting a registry key with Device Update Agent 61
How to judge whether a previous DUA command was successful or failed
62

The Enhanced Write Filter 63
Comparison between RAM and Disk-based Enhanced Write Filter (EWF) 63
Deployment considerations 63
The Enhanced Write Filter and Hibernation 63
EWF Applications 63
EWF Functional Modes; defined 64
Mixing EWF-RAM and EWF-DISK 65
Deployment considerations 66
Runtime maintenance considerations 67
Installation and Implementation 67
Setup procedure for EWF-DISK or EWF-RAM 68
Setup procedure for EWF-RAM-REG 73
Preparing storage media for EWF 75
An alternative to RAM EWF using SDI 79

File Based Write Filter (FBWF) 79

Registry Filter 80

Developing an image bootable from a CDROM 82
Background 82
Booting from an El Torito formatted CDROM 82
Booting from an SDI file 108

Command-Line Tool (XPECMD.WSF) 110

Remote Boot 110
Remote boot applications 110
Accessing hard disk volumes on a Remote Boot client 111
Using Remote Boot as a means of servicing devices that are booted by using
Compact Flash 111
Maximizing performance of Remote Boot clients 112
RAM boot and WinPE 112
RAM boot using SDI 11