Downloaded from www.WillyDev.NET
Windows 7 Developer Guide
Published October 2008
For more information, press only:
Rapid Response Team
Waggener Edstrom Worldwide
(503) 443-7070
rrt@waggeneredstrom.com
The information contained in this document represents the current
view of Microsoft Corp. 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 guide is for informational purposes only. MICROSOFT MAKES
NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.
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, by any means (electronic,
mechanical, photocopying, recording or otherwise), or for any
purpose, without the express written permission of Microsoft.
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.
Unless otherwise noted, the example companies, organizations,
products, domain names, e-mail addresses, logos, people, places
and events depicted herein are fictitious, and no association with
any real company, organization, product, domain name, e-mail
address, logo, person, place or event is intended or should be
inferred.
© 2008 Microsoft Corp. All rights reserved.
Downloaded from www.WillyDev.NET
ABSTRACT .............................................................................................. 1
INTRODUCTION ...................................................................................... 2
Solid Foundation 2
Richer Application Experiences 2
The Best of Windows and the Web 3
SOLID FOUNDATION .............................................................................. 4
Compatibility and Reliability 4
Applications 4
Drivers 4
Devices 5
Reliability Access Monitor 5
Management and Deployment 5
Windows PowerShell 2.0 5
Windows Installer 6
Security 7
Windows Filtering Platform 7
User Account Control 8
Performance 8
Building Power-Efficient Applications 9
Service Control Manager 9
Windows Troubleshooting Platform 10
Documents and Document Peripherals 11
Open Packaging Conventions 11
XPS Documents 12
Accessibility and Global Support 13
Windows Automation 14
Accessibility Support Tools 14
Improved Multi-Language User Interface Support and Linguistic Services14
RICHER APPLICATION EXPERIENCES .............................................. 16
Intuitive User Experience 16
CONTENTS
Multi-Touch Gestures, and Manipulation and Inertia APIs 16
Single-Finger Panning 17
Raw Touch Input Data 17
Handwriting and Ink 18
Math Recognition 18
Pen Input Diagramming 19
Handwriting with Personalized Custom Dictionary 19
The Desktop Experience 19
Jump Lists—Getting Users into Your Application Quickly 21
Enhanced Taskbar 21
Gadgets Platform 22
Scenic Ribbon 23
Animation 23
Managing Files and Data 24
Libraries 24
File Formats and Data Stores 25
High-Fidelity Graphics with DirectX 26
Direct2D 27
DirectWrite 28
Windows Imaging Component 28
Direct3D 11 28
Direct3D 10 improvements 29
DirectX/GDI Interoperability 30
Media Platform 30
Format Support 30
Hardware Devices 30
Simplified Programming Model 31
Platform Improvements 31
Devices 32
Device Experience Platform 32
THE BEST OF WINDOWS AND THE WEB .......................................... 33
Services 33
Windows Web Services 33
Distributed Routing Table 34
Windows BranchCache™ 34
Windows Connectivity Platform 34
Federated Search 35
Sensor Platform 36
Internet Explorer 8 37
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 1
Building applications that are easy to use, visually appealing, and offer high
performance is a challenge that developers face every day. Innovative
applications can greatly improve the user experience, empowering
companies to differentiate their services and solutions. However, developers
are increasingly asked to do more in less time, while also optimizing the
power and performance requirements of their applications.
The Windows 7 platform makes it easy for developers to create engaging,
user-friendly applications by providing familiar tools and rich development
features that allow them to take advantage of the latest PC capabilities.
ABSTRACT
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 2
Developing software has never been more exciting. The world has never
been more connected, interactive and mobile. User experiences and content
have never had higher fidelity. Advances in connectivity, mobility, natural
interfaces, graphics and media are enabling new scenarios and opportunities
for developers. At the same time, expectations have never been higher for
performance, flexibility and interoperability. A world-class developer platform
must provide a flexible and complete foundation for developers and their
solutions, empowering them to build applications that set them apart from the
competition while maximizing their investments.
The Windows® 7 operating system is the essential platform for developers.
Listening to our customers, looking ahead to the scenarios of tomorrow, and
building on the capabilities of Windows Vista®, Microsoft offers developers a
wide variety of choices and capabilities within the Windows developer
platform, while empowering developers to deliver creative solutions that are
mobile-aware, connected, high-fidelity, and provide a highly intuitive user
experience. Most importantly, developer platform fundamentals such as
security, performance, and compatibility are top priorities in Window 7.
This guide summarizes the key developer advances in each of the following
three areas:
Solid Foundation
Great user experiences start with a solid foundation. Windows 7 delivers a
solid development platform and innovative tools that give you more options,
increased application compatibility, better performance, and sophisticated
document support. This results in a simple, more reliable environment for
your applications and a familiar, intuitive one for your users.
We’ve kept the user interface consistent, predictable and easy to use, while
adding multi-touch support, scrolling, and other intuitive interaction features
that take advantage of the latest PC and mobile device capabilities. With
Windows 7, developers have the power to build the right user experiences for
their applications.
Richer Application Experiences
Windows 7 enables developers to build applications today that will run on the
PCs of tomorrow. Service-enabled software and devices, such as mobile
phones, portable media players, and digital cameras, demand constant
connectivity and advanced applications. Windows 7 delivers a platform for
both, making it easy for developers to take advantage of the functionality and
features of next generation hardware, while ensuring that users are always
on, and always connected.
INTRODUCTION
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 3
The Best of Windows and the Web
With Windows 7, it’s easy to get connected and stay connected. Windows
networking offers developers options for better caching and sharing of data
to improve network performance. Network diagnostics in Windows 7 give
developers relevant information for monitoring network issues. Internet
Explorer™ 8 is the essential platform for building fast, rich Web experiences.
Whether the goal is to connect devices, connect to a network, or connect to
the Internet, Windows 7 provides an enhanced platform.
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 4
Windows 7 provides a highly productive developer platform and tools that
deliver on core operating system fundamentals. Windows 7 builds upon the
Windows Vista platform, giving developers the power to build applications
that are compatible with both platforms while limiting application compatibility
issues. Windows 7 dramatically improves performance and power
management so that you can create applications that optimize the mobile
experience. As a result, your applications will be more visually appealing,
easier to create, and support a wider range of international standards.
Advances have also been made in global support, accessibility, and
application deployment.
Compatibility and Reliability
Windows 7 is designed to run on the same hardware as Windows Vista, and
to be compatible with applications and device drivers that work with
Windows Vista.
Windows 7 is the most reliable version of Windows yet. Designed on an
improved technology foundation, Windows 7 allows users to reliably start up,
shut down, or hibernate their computers without having to worry about losing
valuable work. Furthermore, Windows 7 makes it easier than ever to back up
and restore data to network drives or DVDs. Windows 7 also improves upon
print reliability and performance.
Applications
To help ensure compatibility, Windows 7 has been designed in close
partnership with software vendors and PC manufacturers. Early engagement
has enabled Microsoft to build a comprehensive list of the most widely used
applications. Automated testing cycles ensure that compatibility issues are
detected and fixed early in the development cycle.
Drivers
The Windows Driver Kit (WDK) Version 3.0 provides the build environment,
tools, documentation, and samples that developers need to create quality
drivers for Windows. The WDK 3.0 supports static source code analysis,
using PREfast to detect certain classes of C and C++ coding errors. PREfast
includes a specialized driver component, known as PREfast for Drivers
(PFD), which detects errors in kernel-mode driver code. In addition, the WDK
has been enhanced by annotating all kernel header files for PFD support.
New sample drivers have been added that demonstrate new technologies,
and the documentation has been expanded.
SOLID FOUNDATION
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 5
Windows 7 supports a large variety of software and hardware products
designed to integrate seamlessly with the platform. Drivers that were created
for Windows Vista should not require updating to run correctly in Windows 7.
Devices
Windows 7 provides flexible, robust support for a wide variety of applications
and devices, including music players, storage devices, mobile phones, and
other types of connected devices. Automatic testing of these devices is used
to ensure that compatibility issues are fixed early in the development cycle.
Reliability Access Monitor
Reliability Analysis Component is an in-box agent that provides detailed
customer experience information on system usage and reliability. This
information is exposed through a Windows Management Instrumentation
(WMI) interface, making it available for consumption by Portable Readers
Systems. By exposing Reliability Analysis Component through a WMI
interface, developers can monitor and analyze their applications, increasing
reliability and performance,
Windows 7 uses the built-in Reliability Analysis Component to calculate a
reliability index which provides information about your overall system usage
and stability over time. Reliability Analysis Component also keeps track of
any important changes to the system that are likely to have an impact on
stability, such as Windows updates and application installations. You can use
the Reliability Monitor snap-in to see trends in your system's reliability index
correlated with these potentially destabilizing events, making it easy to trace
a reliability change directly to a particular event.
Management and Deployment
IT professionals or developers preparing to deploy Windows 7 will have
increased confidence and experience a shorter evaluation cycle due to
improvements in imaging features and tools. These include support for
managing applications, drivers, and operating systems in offline image files.
Additionally, image creation and management will be easier and will be
available to a broader range of IT organizations. Deploying Windows 7 to
business PCs will also be easier and faster because of new IT migration
tools and automated deployment technologies.
Windows PowerShell 2.0
Windows PowerShell™ is a complete .NET managed scripting language with
both an interactive command line shell and a graphical Integrated Scripting
Environment (ISE). It supports branching, looping, functions, debugging,
exception handling, and internationalization. PowerShell 2.0 is part of
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 6
Windows 7 and delivers many enhancements and a growing set of cmdlets
for Windows Diagnostics, Active Directory®, Internet Information Services
(IIS) and more.
The PowerShell 2.0 remoting feature now allows users to run commands on
one or more remote computers from a single computer running Windows
PowerShell. Developers can also host Windows PowerShell on Internet
Information Services to access and manage their servers.
PowerShell 2.0 supports partitioning and organizing PowerShell scripts using
modules that can be distributed and deployed as self-contained, reusable
units. It also includes transactions support in the PowerShell engine and
APIs, which means that developers can start, commit, and rollback
transactions using built-in transaction cmdlets. Further, the PowerShell
engine includes eventing support for listening, forwarding, and acting on
management and system events. PowerShell applications can be written to
subscribe to certain events for synchronous or asynchronous processing.
Windows PowerShell is a complete .NET managed scripting
language with both an interactive command line shell and a
graphical Integrated Scripting Environment (ISE)
Windows Installer
Windows Installer has been updated to increase developer efficiency by
reducing the amount of custom code required to create an installation
package and create true per-user software installations.
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 7
Multiple Package Transaction allows developers to create a single
transaction from multiple packages, using a “chainer” to dynamically include
packages in the transaction. If one or more of the packages do not install as
expected, simply roll back the installation.
Embedded UI Handler makes custom UIs easier to integrate by embedding a
custom user interface handler in the Windows Installer package.
Embedded Multiple Package Chainer allows developers to enable installation
events across multiple packages. For example, they can enable install-on-
demand events, repair events, and uninstall events across multiple
packages.
New features also enable the creation of true per-user installations, including
support for per-user program files and "elevate now" functionality, and
provide support for offline software inventory and patch applicability checks
through Deployment Image Servicing and Management.
Security
Windows 7 includes new and improved security features that make it easier
for developers to improve, use, and manage the security of their applications.
It comes with a variety of new security features that not only help protect
against threats but also limit the damage that attackers can do if they gain
access to a computer.
Enhancements to the Windows Filtering Platform allow developers to create
applications that interact with the packet processing in the networking stack
of the operating system. Network data can be filtered and also modified
before it reaches its destination.
Also, due to changes to the Windows privilege model, system security is
more manageable by both developers and their end users. New
improvements make it easy to identify critical prompts to ensure that users
can access the applications and features they need without compromising
their systems.
Windows Filtering Platform
In Windows 7, the Windows Filtering Platform has been enhanced to give
developers more control over firewall functionality. The level of filtering has
been increased and ISVs can now plug in custom protection and detection at
lower levels. In addition, firewall developers can selectively turn parts of the
Windows Firewall on or off.
Using Windows Filtering Platform, developers can build firewalls, intrusion
detection systems, antivirus programs, network monitoring tools, and
parental controls into their applications. Windows Filtering Platform integrates
Windows 7 Developer Guide – Downloaded from www.WillyDev.NET 8
with and provides support for a wide variety of firewall features, including
authenticated communication and dynamic firewall configuration based on
applications' use of sockets API (application-based policy). Windows Filtering
Platform also provides infrastructure for policy management, change
notifications, network diagnostics, and stateful filtering.
The initial architecture of Windows Filtering Platform in Windows Vista
®
provided capabilities for IP-based traffic. Other non-IP protocols—such as
such as Address Resolution Protocol (ARP) and media access control
(MAC)-layer protocols for network management and authentication—also
require filtering, inspection, or logging. In Windows 7, an NDIS inspection
layer that supports MAC and ETHERNET filtering has been provided to
satisfy this need.
User Account Control
User Account Control is a security component in Windows 7 that allows
developers to build applications that enable users to perform common tasks
as non-administrators. Developers can reduce security risks by running
applications under a standard user token, reducing the risks of mistakes or
attacks.
User accounts that are members of the local Administrators group will run
most applications as a standard user. By separating user and administrator
functions while enabling productivity, User Account Control gives developers
greater control over the level of access that users have over protected areas
of an application. User Account Control requests credentials in a Secure
Desktop mode, where the entire screen is protected to prevent spoofing of
the user interface or the mouse.
Performance
Windows 7 maximizes hardware energy efficiency and scalability while
maintaining high performance. Energy efficiency is improved through
reduced background activity and new support for the trigger starting of
system services. Windows 7 also offers improvements in the Windows kernel
that enable applications and services to scale efficiently between platforms.
Performance of many features and APIs is improved in Windows 7 versus
Windows Vista. For example, driver performance on servers is optimized by
new user-mode and kernel-mode topology APIs. Graphics rendering is
considerably smoother and faster. Accessibility performance is also
significantly faster than before.
Windows 7 Developer Guide – Downloaded from www
本文档为【[Windows.7.入门资料].2008.11.07.Guia.Windows_7_Developer_Guide】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。