Windows 7 Sensor Platform

Windows 7 has changed how developers use sensors. It includes native support for sensors, expanded by a new development platform for working with sensors, including location sensors, such as GPS devices. Built on the Sensor platform, the Windows Location APIs are a new Windows 7 feature that enables application developers to access the user’s physical location information. The Windows Location APIs can abstract hardware, simultaneously support multiple applications, and seamlessly switch between different technologies, relieving the application developer of the burden of managing these constraints. The Location APIs can be used by programmers through the C++ programming language (by programmers familiar with COM), or by using COM objects in scripting languages, such as JScript®. Scripting support gives easy access to location data for projects such as gadgets or web pages.

Windows 7 provides a solid, easy-to-use platform for using sensor devices, such as an ambient light sensor or a temperature gauge, to create environmental awareness in Windows applications. PCs can use sensors that are built into the computer, connected through wired or wireless connections, or connected through a network or the Internet. The Sensor and Location APIs provide a standard way to discover sensors, and to programmatically access data that sensors provide The Sensor control panel lets users enable or disable sensors, control access to sensors that might expose sensitive data, view sensor properties, and change the descriptions of sensors.

The Sensor Class Extension is a core part of the driver development model for the Sensor platform. It provides the following mechanisms, which are used when writing a User-Mode Driver Framework (UMDF) sensor driver:
• Integration with the Sensor platform
• Security enforcement

Source of Information : Guia Windows 7 Developer Guide

Windows 7 Federated Search

Windows 7 supports searching for documents beyond the user’s own PC. Developers and IT professionals can enable their search engines, document repositories, web applications, and proprietary data stores to be searched from Windows 7 without needing to write and deploy client code. This enables end users to search their corporate intranet or the web as easily as they can search for their local files—all from within the same familiar Windows interface.

Windows 7 compatible OpenSearch support can be added by developers and IT professionals to any existing searchable web application by adding RSS or ATOM output as defined in the public OpenSearch standard (http://www.opensearch.org). OpenSearch description files can then be authored by developers and advanced users to define the connection parameters that enable the desktop client to create a Search Connector for the service. SharePoint® Search Server can also query these compatible OpenSearch services. This enables access to your search service from the SharePoint search center web interface as well.

Source of Information : Guia Windows 7 Developer Guide

Services in Windows 7

Windows 7 provides a powerful, highly extensible, and manageable platform for building and integrating the Web services and applications of the future. Windows 7 offers both managed-code APIs and native APIs for building and running web services. A variety of new features are built on top of a new extensibility layer that allows developers to extend all APIs, in native code or within the .NET Framework. Windows 7 also lets developers take advantage of better caching and searching capabilities. With these enhancements, developers can retrieve data faster and reduce network bandwidth usage.



Windows Web Services
With Windows Web Services, you can create applications that communicate easily with a local computer or a remote web service. Windows Web Services is a native-code implementation of SOAP and provides core network communication by supporting a broad set of the web services (WS) family of protocols. Windows Web Services is a peer to Windows Communication Foundation (WCF – managed-code web services), and provides a high-performance subset of WCF functionality. Windows Web Services provides the following benefits:

• The ability to build native code web services in C/C++ in Windows client and server.

• Extensive integration with Windows Communication Foundation services.

• The ability to build web services with minimal startup time.

• The ability to build services based on the core WS family of protocols and W3C standards.

• The ability to use web services in resource-constrained environments.



Distributed Routing Table
Windows 7 makes it easier to build sophisticated peer-to-peer applications like distributed file systems and content distribution networks with the Distributed Routing Table. The Distributed Routing Table provides a secure, scalable mechanism for publishing and searching for keys in a peer-to-peer system. It can be used to build distributed hash tables and construct topologies for overlay networks.



Windows BranchCache™
Windows 7 improves application responsiveness between central servers and branch-office computers. In today’s networks, communication between central servers and branch offices is often congested, which leads to slower performance for applications in the branch office. With Windows BranchCache, clients can retrieve data from other clients in their own branch that have already downloaded the data, instead of having to retrieve the data over remote servers. As a result, WAN link traffic decreases and application responsiveness improves. The cache keeps a copy of all content that clients in the branch have requested and ensures that only the clients that are authorized by the content server can access the requested data, while preserving end-to-end encryption of the data. Windows BranchCache is already integrated with HTTP and SMB. If an application uses the Windows APIs for either of these protocols, Windows BranchCache can help increase the performance of this application on Windows 7 without making any changes to it.

If your application retrieves the same data multiple times from a server over a WAN link and is not automatically optimized using Windows 7, it is easy for you to use the Windows BranchCache APIs to optimize your application to work faster on Windows 7 and satisfy your branch users. These new features help reduce wide area network (WAN) traffic and latency while ensuring compliance with security mandates.



Windows Connectivity Platform
Windows 7 provides a platform that gives users ubiquitous connectivity to their data from nearly any locale. Trends in network convergence of voice, video, and data are driving the deployment of higher bandwidth everywhere. However, limitations in addressing have forced the deployment of private addressing and Network Address Translators (NATs). Windows Connectivity Platform addresses these limitations by defining a pluggable extension that provides the following benefits:

• Enables developers to build applications to work with this technology through existing APIs in Windows 7.

• Defines a public interface that’s a third-party NAT traversal that solutions can use.

• Enables multiple NAT traversal solutions to coexist on the same computer in a secure manner.

• Enables Windows applications to get better end-to-end IP connectivity.

Source of Information : Guia Windows 7 Developer Guide

Devices in Windows 7

Devices are a fundamental part of the PC experience, and Windows 7 enables new possibilities for developers of applications that interact with devices. The Device Experience Platform enables the association of applications and services with a particular device, so that users can get the maximum benefit from their peripherals immediately upon connection. The Sensor Platform provides a set of APIs for discovery of and communication with sensor devices that will enable a new generation of applications that are aware of their environments. The Location Platform provides new APIs for using location data from a global positioning system (GPS) receiver or other services that enable location-specific application behavior for mobile users.



Device Experience Platform
Windows 7 combines software and services to create exciting new experiences for mobile phones, portable media players, cameras, and printers. Windows 7 makes it easier to use these devices directly from the Windows desktop. It also provides device makers with prominent placement on the Windows desktop, with branding opportunities and a simple interface for presenting the functionality and services that the device supports. Through the Device Experience Platform, every Windows session becomes a portal for customers to get more value from their devices. The Device Experience Platform enables users to connect with the device manufacturer, discover and use related services, and learn about accessories. Because the device experience is connected to Microsoft’s Web services, device companies can update the experience even after devices have been shipped to consumers. The Device Experience Platform can generate an applicationlike experience for Windows Logo’d devices, such as a mobile phones. The Device Experience Platform gives applications access to devices such as mobile phones and media players that implement services through the Media Transfer Protocol (MTP) or the Windows Portable Devices driver model.

To enable the synchronization of personal information between a PC and a device, the Device Experience Platform hosts a new synchronization platform for connected devices, and provides a user interface for selecting target applications for data synchronization such as Contacts, Calendar, and Tasks. 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. Whether the goal is to connect devices, connect to a network, or simply understand the status of your connection, Windows 7 provides an enhanced platform.

Source of Information : Guia Windows 7 Developer Guide

High-Fidelity Graphics with DirectX

Windows application developers have long used DirectX® to provide highquality, hardware-accelerated, 3D graphics. When the technology debuted in 1995, developers could provide high-quality 3D graphics for games and engineering applications for gamers and professionals willing to pay extra for a 3D-graphics board. Now, even the most inexpensive PCs include capable 3D-graphics hardware.

To take advantage of these graphics capabilities, Windows Vista introduced the Windows Display Driver Model (WDDM) infrastructure for DirectX that enabled multiple applications and services to share the resources of the GPU. The Desktop Window Manager (DWM) uses this technology to animate task switching in 3D, provide dynamic thumbnail images of application windows, and to provide Windows® Aero® glass effects for desktop applications.

Windows 7 puts even more graphics capability into the hands of application developers. Through a new set of DirectX APIs, Win32 developers can take advantage of the latest innovations in GPUs to add fast, scalable, highquality, 2D and 3D graphics, text, and images to their applications. On the latest LCD displays, DirectX APIs can display desktop and window content using color depth greater than 8 bits per color component.

With DirectX, Win32 developers can also use the GPU’s parallelism for general-purpose computation such as image processing, and can render to DirectX 10 hardware, DirectX 9 hardware, the CPU, or to a remote Windows computer. These technologies were designed to interoperate with GDI and GDI+, ensuring that developers can easily preserve their existing investments in Win32 code.

These enhanced graphics capabilities are provided by the following COMbased
APIs:
• Direct2D for drawing 2D graphics.
• DirectWrite for arranging and rendering text.
• Windows Imaging Component for processing and displaying images.
• Direct3D® 10 for drawing 3D graphics.
• Direct3D 11 for drawing 3D graphics, and providing access to nextgeneration GPU technologies, such as tessellation, limited support for texture streaming, and general purpose computing.
• DirectX Graphics Infrastructure (DXGI) for managing devices and GPU resources, and providing interoperability between DirectX and GDI.


Direct2D
Built on Direct3D 10, Direct2D offers Win32 developers immediate-mode, resolution-independent, 2D APIs that use the power of next-generation graphics hardware, yet interoperate well with today’s GDI/GDI+ applications and Direct3D 10 applications. Direct2D provides high-quality 2D rendering with performance superior to GDI and GDI+. It provides Win32 developers finer control over resources and their management.


DirectWrite
Many of today’s applications need to support high-quality text rendering, resolution-independent outline fonts, and full Unicode text and layout support. DirectWrite, a new DirectX component, provides these features and more:
• A device-independent text layout system that improves text readability in documents and in UI.
• High-quality, sub-pixel, ClearType® text rendering that can use GDI, Direct2D, or application-specific rendering technology.
• Hardware-accelerated text, when used with Direct2D.
• Support for multi-format text.
• Support for the advanced typography features of OpenType® fonts.
• Support for the layout and rendering of text in all supported languages.
• GDI-compatible layout and rendering.

The DirectWrite font system enables ”any font anywhere” font usage, where users don’t have to perform a separate installation step just to use a font, and an improved structural hierarchy of font grouping to help with manual or programmatic font discovery. The APIs support measuring, drawing, and hittesting of multi-format text. DirectWrite handles text in all supported languages for global and localized applications, building on the key language infrastructure found in Windows 7. DirectWrite also provides low-level glyph rendering APIs for developers who want to perform their own layout and Unicode-to-glyph processing.



Windows Imaging Component
In Windows Vista, the Windows Imaging Component introduced an extensible framework for working with images and image metadata. The image formats supported by Windows Imaging Component include JPEG, PNG, and TIFF, and the supported metadata formats include XMP and EXIF. With Windows 7, Windows Imaging Component broadens its standards compliance by providing support for progressive image decoding, expanded PNG features, GIF metadata, and metadata that spans APPn segments.



Direct3D 11
Direct3D 11 extends the functionality of the Direct3D 10 pipeline and provides Windows 7 games and high-end 3D applications with efficient, robust, scalable access to the upcoming generation of GPUs and multi-core CPUs. In addition to the functionality found in Direct3D 10, Direct3D 11 introduces several new features. Geometry and high-order surfaces can now be tessellated to support scalable, dynamic content in patch and subdivision surface representations. To make good use of the parallel processing power available from multiple CPU cores, multithreading increases the number of potential rendering calls per frame by distributing the application, runtime, and driver calls across multiple cores. In addition, resource creation and management has been optimized for multithreaded use, enabling more efficient dynamic texture management for streaming.

New general-purpose compute shaders have been created for Direct3D 11. Unlike existing shaders, these are extensions to the programmable pipeline that enable your application to do more work completely on the GPU, independent of the CPU. DrawAuto, which was introduced in Direct3D 10, has been extended to interact with a compute shader. Several improvements have been made to the high-level shading language (HLSL), such as a limited form of dynamic linkage in shaders to improve specialization complexity, and object-oriented programming constructs like classes and interfaces.



Direct3D 10 improvements
Direct3D 10 includes a redesigned graphics pipeline with programmable shader stages and immutable state objects for initializing the fixed-function stages. The state objects simplify the pipeline and improve performance by minimizing the number of state changes required. Programmability of shader stages now offers high-level shading language extensions to support unlimited shader instructions, generalized shader resources, and integer and bitwise calculations.

The pipeline also introduces the geometry shader stage, which offloads work entirely from the CPU to the GPU. This new stage enables you to create geometry, stream the data to memory, and render the geometry with no CPU interaction.

Several other improvements are designed specifically for faster performance. Predicated rendering performs occlusion culling to reduce the amount of geometry that is rendered. Instancing APIs can dramatically reduce the amount of geometry that needs to be transferred to the GPU by drawing multiple-instances of similar objects. Texture arrays enable the GPU to do texture swapping without CPU intervention. Several additions have been made to Direct3D 10 and Direct3D 11 to extend the gamut of configurations that can be targeted with these APIs. The Windows Advanced Rasterization Platform (WARP) implements fast, multicore scalable CPU rendering for Direct3D 10, enabling full featured graphics rendering on systems without graphics hardware. The addition of new “Feature Levels,” specifically called Direct3D 10 Level 9, allow the Direct3D 10 and Direct3D 11 APIs to drive Direct3D 9-class hardware, expanding the number of configurations a Direct3D 10 or Direct3D 11 application can target to nearly every computer system on the market.



DirectX/GDI Interoperability
In Windows Vista, the behavior of an application that uses both DirectX and GDI to render to a shared surface is different depending on whether Desktop Window Manager (DWM) is on or off. In addition, when DWM is on, applications that use both DirectX and GDI behave differently on Windows Vista than on Windows XP. This caused many ISVs to disable DWM when running their applications on Windows Vista to ensure consistent behavior. With the improvements to DirectX in Windows 7, an application can now freely mix DirectX and GDI without disabling DWM. Windows 7 also features improved performance for scenarios that require interoperation between DirectX and GDI by utilizing the more efficient Direct3D 10 APIs.


Source of Information : Guia Windows 7 Developer Guide

Managing Files and Data in Windows 7

Users have easier access to files and data in Windows 7. New APIs make files and views more informative, enabling applications to deliver relevant and distinctive information to Windows Explorer. In addition, applications benefit from the new Libraries model—a useful, more abstract notion of user storage space than folders—and can also participate in common libraries of similar file types that are shared by different applications.


Libraries
Windows 7 introduces the concept of Libraries as destinations where developers and end-users can find and organize their data as collections of items that can span multiple locations on the local computer as well as on remote computers. The Library APIs provide a straightforward way for developers to create applications that create, interact with, and support Libraries as first-class items within applications. Libraries can also be selected by using the folder picker dialog box. Applications can enumerate relevant library scopes, or they can use the library directly as a folder. Windows 7’s new approach solves many of the previous API compatibility issues that previous versions struggled with, offering new API frameworks and supporting legacy frameworks through monolithic Libraries. This allows legacy applications to run smoothly, without compromising new performance enhancements for applications created for the Windows 7 platform. Ultimately, users can quickly and seamlessly upgrade without having to worry if their favorite programs will still work.


File Formats and Data Stores
In Windows 7, Windows Explorer makes file management and manipulation easier for the user in several ways:

• The preview for your application’s file type is more accessible with a new button that lets users show and hide the preview pane.

• Immersive visual stacks aggregate thumbnail images for file types in a view.

• Windows Explorer views show useful information based on properties written with your property handler.

• Document snippets and hit highlighting use your IFilter interface implementation to make searching and finding files easier.

• Context-menu verbs and commands are easier than ever to implement.

By implementing all of the appropriate format handlers for the items returned from your protocol handler, search results from your custom data store can be as rich as search results from files. Libraries are automatically created for your protocol handlers so users can scope their searches easily. And the logic for creating Libraries can be easily customized through the registry.

Source of Information : Guia Windows 7 Developer Guide


Subscribe to Developer Techno ?
Enter your email address:

Delivered by FeedBurner