Saturday, December 22, 2007

File operations

File operations

In Windows Vista, when moving or copying files, Windows Explorer displays the full source and destination path, size and number of items and the transfer speed in megabytes per second (MB/s). If a conflict or error is encountered, it does not terminate the copy or move operation. Rather, the file is skipped and the rest of the files processed. At the end of the operation, the errors are presented to the user with resolution options (if available). If two files have the same name, an option is available to rename the file; in previous versions of Windows, the only options were to either replace the destination file or cancel the process. The user can also choose to apply the same action to the further conflicts, if any.

When renaming a file (when extensions are being displayed), Explorer only highlights the filename without selecting the extension.

In case a file is in use or "locked" by another application, Windows Explorer informs users to close the application and retry the file operation. Also, a new interface IFileIsInUse is introduced into the API which developers can use to let other applications switch to the main window of the application that has the file open or simply close the file from the "File In Use" dialog. [3] If the running application exposes these operations by means of the IFileInUse interface, Windows Explorer, upon encountering a locked file, allows the user to close the file or switch to the application from the dialog box itself.

Default Programs

A common issue in previous Windows versions was that competing applications doing common tasks each tried to associate themselves as the default for a certain file type using their own custom user interface. The default application information for a particular file type was stored in the registry on a per-machine basis, resulting in applications changing another user's default program when one user's defaults were changed and each application querying several different registry values when launched. In Windows Vista onwards, file type associations and protocol handlers can be set on a per-user basis using the new Default Programs API, meaning default programs for file types and tasks can be different for each individual user. There is an API for calling a common user interface so applications no longer need to maintain their own file association UI. The Default Programs API gives applications a programmatic way to check for and discover other default applications, restore a single or all registered defaults, query for the owner of a specific default file association/protocol, launch the Default Programs UI for a specific application or clear all per user associations. Applications only need to registered at install time to be part of Default Programs.

Windows Flip and Flip 3D
Windows Flip 3D
Windows Flip 3D
Arabic
Arabic
French
French

For all Vista Premium Ready PCs, when using Alt+Tab to switch between open windows, a preview of each open window appears instead of just the program icon. In addition, Windows Flip 3D enables users to flip through a cascading stack of their open windows using the mouse scroll wheel. Windows can be stacked and rotated in 3D to provide views of all of them simultaneously. (The keyboard shortcuts are Win+Tab, which makes Flip 3D disappear after releasing, Ctrl+Win+Tab, which keeps Flip 3D visible after releasing, and Win+Shift+Tab to flip through open windows backward).[4] The window buttons on the taskbar show a thumbnail image of the window, when the mouse hovers over the button.

[edit] Other shell improvements

* It is now possible to install and select non-English languages on a per-user basis which transforms the entire shell user interface and applications into Arabic, French, German, Japanese or Spanish from the next login.

* JPEG files can be natively set as the desktop wallpaper without using Active Desktop (which is no longer supported).[5] Also, the aspect ratio of images is maintained properly while applying them as the desktop wallpaper.

* A new feature known as Previous Versions can revert the contents of any file to an arbitrary point in the past from the file's Properties. The Previous Versions feature utilizes Shadow Copy, a storage backup technology introduced in Windows Server 2003.



Windows Vista features system-wide integrated search, called Instant Search (also known as Windows Search).[6] Instant Search is designed to run significantly faster and offers more customized search capabilities. Search boxes have been added throughout the Explorer user interface, to the Start menu, Open/Save dialog boxes, and several of the applications included with Windows Vista. By default, Instant Search indexes only a small number of folders such as the start menu, the names of files opened, the Documents folder, and the user's e-mail. Beyond searching for files, search works with Help, Control Panel, Networking, and more. In Control Panel, for example, typing "firewall" will instantly return all applets that have to do with the system firewall.[7]
The Search Explorer advanced search pane
The Search Explorer advanced search pane

The search engine uses indexing to allow for a quick display of results for a given search. Advanced options allow the user to choose the file type, how it should be indexed, the properties only, or the properties and the file contents. The Start menu search also doubles as the Run command from previous versions of Windows; simply typing any command will execute it. The indexed search platform is based on Microsoft's Windows Desktop Search 3.0, allowing third-party applications (e.g. Microsoft Outlook 2007) to use the indexing platform to store metadata and perform searches on Windows Vista or Windows XP (with the Windows Desktop Search redistributable installed). This is in contrast to the search engine of Windows XP, which takes some time to display results, and only after the user has finished typing the search string. The Windows Vista search allows users to add multiple filters to continually refine search results (Such as "File contains the word 'example'"). It is also possible to search across RSS and Atom feeds, straight from Windows Explorer. Windows search uses IFilters that are used by Windows Desktop Search as well. The IFilter interface can be implemented by software makers so that files created by their applications can be better integrated with search and indexing programs.

Searching can also be done from the box at the bottom of the start menu, so it possible to start a program from here by typing its name, for example "Calc" to start the calculator, "Word" to start Microsoft Word, "Mail" to open Windows Mail, a web address to start the default browser at a particular site, the default search engine, or even a folder name, filename or network share name.

There is also the ability to save searches as a Search Folder where opening the folder will execute a specific search automatically and display the results as a normal folder. A search folder is just an XML file which stores the search query, including the search operators as well. When these files are accessed, the search is run with the saved query string and the results presented as a virtual folder. Windows Vista also supports query composition, where a saved search (called a scope) can be nested within the query string of another search.[8] These virtual folders are also distributable via RSS.

Windows Vista also features an enhanced file content search for non-indexed locations, whereby the files being scanned are processed by the same IFilters that would be used for indexing, therefore offering more consistent results between indexed and non-indexed searches as well as the ability for third-parties to add support for additional file formats to have their content searched.

Windows Sidebar
Windows Gadgets
Windows Gadgets

Main article: Windows Sidebar

Windows Sidebar is a new panel which can be placed on either the left or the right-hand side of the screen where a user can place Desktop Gadgets, which are small applets designed for a specialized purpose (such as displaying the weather or sports scores). The gadgets can also be placed on other parts of the desktop, if desired, by dragging. By default, Windows Vista ships with thirteen gadgets: Calculator, Clock, CPU Meter, Currency Conversion, Feed Viewer, Feed Watcher, Notes, Number Puzzle, Picture Puzzle, Recycle Bin, Slide Show, Stocks, and an egg timer. Additional gadgets are published at Microsoft's web site, which offers both Microsoft-created and user-submitted gadgets in a gallery.

Gadgets are written using a combination of DHTML for visual layout, JScript and VBScript for functional code, and an XML file for defining the gadget's metadata (author name, description, etc.) The gadget is then distributed as a ZIP file with a .gadget extension. Displaying the gadget using DHTML allows the same gadget to be used on Microsoft's Live.com and Windows Live Spaces sites. Alternatively, on Windows Vista, the gadget can detect that WPF is available and take advantage of its graphical abilities to display in a different way from the web.

New and upgraded applications
Windows Calendar
Windows Calendar
Paint
Paint

* Windows Mail replaces Outlook Express, the email client in previous Windows versions. It has the Phishing Filter like IE7 and a Bayesian junk mail filtering, which is updated monthly via Windows Update. Also, e-mail messages are now stored as individual files rather than in a binary database to reduce frequent corruption and make messages searchable in real-time. Backing up and restoring account setup information, configuration and mail store is now made easier. It does however omit some features of Outlook Express , such as a "Block sender" for Usenet access. Windows Mail is itself being replaced with Windows Live Mail.
* Windows Contacts, a new unified contact and personal information management application, replaces Windows Address Book (WAB). It is based on a new XML based propriety file format where each contact appears as an individual .contact file, and features extensibility APIs for integration with other applications. It can store custom information related to contacts, including display pictures. The legacy *.wab format and the open standard *.vcf (vCard) and *.csv (Comma separated values) file formats are also supported.
* Windows Calendar is the new calendar application that is included in Windows Vista. It supports the popular iCalendar format as well as sharing, subscribing and publishing of calendars on WebDAV-enabled web servers and network shares.
* Windows Fax and Scan is an integrated faxing and scanning application. With this users can send and receive faxes, fax or email scanned documents and forward faxes as email attachments from the computer. It replaces (or enhances) the 'Fax Services' component which was available as an optional component in Windows XP. It is available by default in the Ultimate edition and is also available in the Business and Enterprise editions. By connecting a scanner and a fax-capable modem to the computer, users can preview documents before scanning them and can choose to directly fax or email the scanned the documents. The user interface resembles that of 'Windows Mail' with preview pane, tree views etc.
* Windows Meeting Space, the replacement for NetMeeting, is a peer-to-peer (p2p) collaboration application. Users can share applications (or their entire desktop) with other users on the local network, or over the Internet. Windows Meeting Space allows sharing of the desktop with other co-workers, distribution and collaborative editing of documents, and passing notes to other participants. Windows Meeting Space automatically finds other users using People Near Me, a technology that uses WS-Discovery to see other users on a local network.
* Paint has new features such as a crop function and the undo limit has been raised from 3 to 10.
* WordPad now supports the Text Services Framework, using which Windows Speech Recognition is implemented. Therefore, it is possible to dictate text in WordPad, and similar other applications which support RichEdit.
* Sound Recorder has been rewritten and now supports recording clips of any length and saving them as WMA. However, saving to WAV format is not supported except in the N editions of Windows Vista.

Snipping Tool
Snipping Tool

* Snipping Tool, first introduced in Experience Pack for Windows XP Tablet PC Edition 2005, is a screen-capture tool that allows for taking screen shots (called snips) of windows, rectangular areas, or free-form areas. Snips can then be annotated, saved (as an image file or HTML page), or e-mailed.
* The Magnifier accessibility tool uses WPF, which in turn uses vector images to render the content. As a result, the rendered magnified image is sharp and not pixelated.[9] However, this is useful only for WPF applications. Non-WPF applications are still magnified the traditional way.

Windows Photo Gallery
Windows Photo Gallery

* Windows Photo Gallery, a photo and video library management application. It can import from digital cameras, tag and rate individual pictures including custom metadata. It also allows basic editing of images, such as adjusting color and exposure, resizing, cropping, red-eye reduction and printing. Slideshows, with pan, fade and other effects, can also be created, and burnt to DVD. It allows custom metadata to be added to images and videos, and enables searching by the attributes. It also supports RAW images natively and can open and organize any image format for which image codecs are installed in the Windows Imaging Component. Images, and videos too, may be viewed in the Windows Photo Gallery Viewer with options to zoom, pan and losslessly rotate images; pause or play videos; and bring up the Info pane to view and edit metadata about a photo or a video. ICC V4 color profiles embedded in images are also supported. The Photo Print Wizard has been improved to offer a lot of customizability.
* Windows Movie Maker supports editing and outputting HD video, as well as burning the output movie on a CD. The ability to or burn to a DVD requires the Windows DVD Maker add-on (Home Premium & Ultimate only). DVR-MS videos can now be edited with Windows Movie Maker. Some new effects and transitions have been added and the transitions are now smoother. All Windows Vista Movie Maker versions require pixel shader hardware support.
* Windows DVD Maker, a DVD creation application. Applications can also pass an XML file to DVD maker for authoring and burning.
* Games: Minesweeper, Solitaire, Hearts, FreeCell and Spider Solitaire have been updated and rewritten to take advantage of Windows Vista's new graphics capabilities. Also included are new games, namely, Purble Place, Chess Titans and Mahjong Titans. InkBall, a game previously available only with Windows XP Tablet PC Edition, has been included and can also be played using a mouse. Pinball has been dropped. As of the consumer launch of 30th January 2007, users of the Ultimate edition of Windows Vista can also download Texas Hold 'Em Poker as an Ultimate Extra.

Saturday, July 14, 2007

Vista content protection

Windows Vista (formerly codenamed Longhorn) has many new features compared with previous Microsoft Windows versions, covering most aspects of the operating system.

This article discusses the changes most likely to be of interest to non-technical users. The companion article, Technical features new to Windows Vista, discusses the technical advancements in Windows Vista, while the article Security and safety features new to Windows Vista discusses the security advancements. The article Management features new to Windows Vista discusses the management and administrative improvements, which may be of interest to IT professionals.The Vista Content Protection specification could very well constitute the longest suicide note in history.

Peter has drawn on a heap of sources (both public and private) to work out the implications of Microsoft wanting to make the content providers dreams come true and going to extreme lengths to try and stop a few people tampering with “premium content”. The results are going to be more unreliable systems with large processing overheads and less functionality.

Since S/PDIF doesn’t provide any content protection, Vista requires that it be disabled when playing protected content. In other words if you’ve invested a pile of money into a high-end audio setup fed from a digital output, you won’t be able to use it with protected content. Similarly, component (YPbPr) video will be disabled by Vista’s content protection, so the same applies to a high-end video setup fed from component video.

Echo cancellation will be another victim of Vista as the required feedback system will not be permitted, instead it’ll degrade the quality to stop the potential for capturing “premium content” and the legitimate users will just have to cope. This sort of audio and video degradation will occur whenever the system believes it is playing “premium content”, even if you’re doing something else important:

What makes this particularly entertaining is the fact that the downgrading/disabling is dynamic, so if the premium-content signal is intermittent or varies (for example music that fades out), various outputs and output quality will fade in and out, or turn on and off, in sync. Normally this behaviour would be a trigger for reinstalling device drivers or even a warranty return of the affected hardware, but in this case it’s just a signal that everything is functioning as intended.

It appears the user will have no control over this, if someone manages to introduce something that Vista believes is “premium content” (and we all know how bad Microsoft are at getting things right) then the constrictors will kick in, downgrading the signal and then upgrading it to the required spec but with loss in quality. This pretty much rules Vista out for use in hospital imaging systems, astronomy or anywhere else where lossy compression is verboten. This is going to be a nightmare for the hardware vendors:

Amusingly, the Vista content protection docs say that it’ll be left to graphics chip manufacturers to differentiate their product based on (deliberately degraded) video quality. This seems a bit like breaking the legs of Olympic athletes and then rating them based on how fast they can hobble on crutches.

This is also going to have serious ramifications for developers of drivers for open source operating systems like Linux, FreeBSD, etc as Vista will introduce a requirement called Hardware Functionality Scan (HFS for short) where the driver interrogates a device and gets it to attest it is legitimate (and not a software phantom). This, of course, is being done through security through obscurity and, as Peter says:

In order for this to work, the spec requires that the operational details of the device be kept confidential. Obviously anyone who knows enough about the workings of a device to operate it and to write a third-party driver for it (for example one for an open-source OS, or in general just any non-Windows OS) will also know enough to fake the HFS process. The only way to protect the HFS process therefore is to not release any technical details on the device beyond a minimum required for web site reviews and comparison with other products.

In return the hardware will be monitored for odd things happening (unexpected voltage changes, etc) and the drive can set so called “tilt switches” to let the O/S know that something bad might be happening, which will be real fun for Vista users when the virus writers figure out how to trip these from software. The hardware is also going to have to support video decompression as the CPU won’t be allowed to do that due to its vulnerable nature, which is going to constrain the codecs that “premium content” will use. This is already an issue:

This is particularly troubling for the high-quality digital cinema (D-Cinema) specification, which uses Motion JPEG2000 (MJ2K) because standard MPEG and equivalents don’t provide sufficient image quality. Since JPEG2000 uses wavelet-based compression rather than MPEG’s DCT-based compression, and wavelet-based compression isn’t on the hardware codec list, it’s not possible to play back D-Cinema premium content (the moribund Ogg Tarkin codec also used wavelet-based compression). Because *all* D-Cinema content will (presumably) be premium content, the result is no playback at all until the hardware support appears in PCs at some indeterminate point in the future.

So this will stifle the innovation in video codecs, no hardware support then no undegraded playback. This will probably rule out the use of Vista for high-def Access Grid videoconferencing. Add in on top of all this the requirements to support hardware encryption between components and all the patent licenses that are needed for this and you’ve got a recipe for disaster.

For those of us lucky enough to not be under the thumb of the Redmond monopoly this will either mean a ramp up in hardware costs across the board, or (less likely) the hardware vendors will start to sell two streams of hardware, one “Vista Certified” and costing more and another which isn’t and costs less (possibly being older hardware predating these crazy requirements).

The appearance of Windows Explorer has changed since Windows XP.

End-user features
The appearance of Windows Explorer has changed since Windows XP.
The appearance of Windows Explorer has changed since Windows XP.

* Windows Aero: The new hardware-based graphical user interface, named Windows Aero – an acronym for Authentic, Energetic, Reflective, and Open. The new interface is intended to be cleaner and more aesthetically pleasing than those of previous Windows, including new transparencies, live thumbnails, live icons, animations, and eye candy.
* Windows Shell: The new Windows shell is significantly different from Windows XP, offering a new range of organization, navigation, and search capabilities. Windows Explorer's task panel has been removed, integrating the relevant task options into the toolbar. A "Favorite links" panel has been added, enabling one-click access to common directories. The address bar has been replaced with a breadcrumb navigation system. The preview panel allows users to see thumbnails of various files and view the contents of documents. The details panel shows information such as file size and type, and allows viewing and editing of embedded tags in supported file formats. The Start menu has changed as well; it no longer uses ever-expanding boxes when navigating through Programs. The word "Start" itself has been removed in favor of a blue Windows Orb (also called "Pearl").
* Instant Search (also known as search as you type) : Windows Vista features a new way of searching called Instant Search, which is significantly faster and more in-depth (content-based) than the search features found in any of the previous versions of Windows.
* Windows Sidebar: A transparent panel anchored to the side of the screen where a user can place Desktop Gadgets, which are small applets designed for a specialized purpose (such as displaying the weather or sports scores). Gadgets can also be placed on other parts of the desktop.
* Windows Internet Explorer 7: New user interface, tabbed browsing, RSS, a search box, improved printing,[12] Page Zoom, Quick Tabs (thumbnails of all open tabs) , Anti-Phishing filter, a number of new security protection features, Internationalized Domain Name support (IDN) , and improved web standards support. IE7 in Windows Vista runs in isolation from other applications in the operating system (protected mode) ; exploits and malicious software are restricted from writing to any location beyond Temporary Internet Files without explicit user consent.

Windows Media Player 11
Windows Media Player 11

* Windows Media Player 11, a major revamp of Microsoft's program for playing and organizing music and video. New features in this version include word wheeling (or "search as you type") , a new GUI for the media library, photo display and organization, the ability to share music libraries over a network with other Vista machines, Xbox 360 integration, and support for other Media Center Extenders.
* Backup and Restore Center: Includes a backup and restore application that gives users the ability to schedule periodic backups of files on their computer, as well as recovery from previous backups. Backups are incremental, storing only the changes each time, minimizing the disk usage. It also features Complete PC Backup (available only in Ultimate, Business, and Enterprise versions) which backs up an entire computer as an image onto a hard disk or DVD. Complete PC Backup can automatically recreate a machine setup onto new hardware or hard disk in case of any hardware failures. Complete PC Restore can be initiated from within Windows Vista, or from the Windows Vista installation CD in the event the PC is so corrupt that it cannot start up normally from the hard disk.
* Windows Mail: A replacement for Outlook Express that includes a new mail store that improves stability,[13] and features integrated Instant Search. It has the Phishing Filter like IE7 and Junk mail filtering that is enhanced through regular updates via Windows Update.[14]
* Windows Calendar is a new calendar and task application.
* Windows Photo Gallery, a photo and movie library management application. WPG can import from digital cameras, tag and rate individual items, adjust colors and exposure, create and display slideshows (with pan and fade effects) , and burn slideshows to DVD.
* Windows DVD Maker, a companion program to Windows Movie Maker that provides the ability to create video DVDs based on a user's content. Users can design a DVD with title, menu, video, soundtrack, pan and zoom motion effects on pictures or slides.
* Windows Media Center, which was previously exclusively bundled as a separate version of Windows XP, known as Windows XP Media Center Edition, has been incorporated into the Home Premium and Ultimate editions of Windows Vista.
* Games and Games Explorer: Games included with Windows have been modified to showcase Vista's graphics capabilities. New games are Chess Titans, Mahjong Titans and Purble Place. A new Games Explorer special folder holds shortcuts and information to all games on the user's computer.

Windows Mobility Center.
Windows Mobility Center.

* Windows Mobility Center is a control panel that centralizes the most relevant information related to mobile computing (brightness, sound, battery level / power scheme selection, wireless network, screen orientation, presentation settings, etc.).
* Windows Meeting Space replaces NetMeeting. Users can share applications (or their entire desktop) with other users on the local network, or over the Internet using peer-to-peer technology (higher versions than Starter and Home Basic can take advantage of hosting capabilities, limiting previous to "join" mode only)
* Shadow Copy automatically creates daily backup copies of files and folders. Users can also create "shadow copies" by setting a System Protection Point using the System Protection tab in the System control panel. The user can be presented multiple versions of a file throughout a limited history and be allowed to restore, delete, or copy those versions. This feature is available only in the Business, Enterprise, and Ultimate editions of Windows Vista and is inherited from Windows Server 2003.[15]

Windows Update with Windows Ultimate Extras
Windows Update with Windows Ultimate Extras

* Windows Update: Software and security updates have been simplified,[16] now operating solely via a control panel instead of as a web application. Windows Mail's spam filter and Windows Defender's definitions are updated automatically via Windows Update. Users that choose the recommended setting for Automatic Updates will have the latest drivers installed and available when they add a new device.
* Parental controls: Allows administrators to control which websites, programs, and games each standard user can use and install. This feature is not included in the Business or Enterprise editions of Vista.
* Windows SideShow: Enables the auxiliary displays on newer laptops or on supported Windows Mobile devices. It is meant to be used to display device gadgets while the computer is on or off.
* Speech recognition is integrated into Vista.[17] It features a redesigned user interface and configurable command-and-control commands. Unlike the Office 2003 version, which works only in Office and WordPad, Speech Recognition in Windows Vista works for any accessible application. In addition, it currently supports several languages: British and American English, Spanish, French, German, Chinese (Traditional and Simplified) , and Japanese.
* New fonts, including several designed for screen reading, and improved Chinese (Yahei, JhengHei) , Japanese (Meiryo) and Korean (Malgun) fonts. See . ClearType has also been enhanced and enabled by default.
* Problem Reports and Solutions, a control panel which allows users to view previously sent problems and any solutions or additional information that is available.
* Improved audio controls allow the system-wide volume or volume of individual audio devices and even individual applications to be controlled separately. New audio functionalities such as Room Correction, Bass Management, Speaker Fill and Headphone virtualization have also been incorporated.
* Windows System Assessment Tool is a tool used to benchmark system performance. Software such as games can retrieve this rating and modify its own behavior at runtime to improve performance. The benchmark tests CPU, RAM, 2-D and 3-D graphics acceleration, Graphics Memory and Hard disk space.[18][19]
* Windows Ultimate Extras: The Ultimate Edition of Windows Vista provides access to extra games and tools, available through Windows Update. This replaces the Microsoft Plus! software bundle that was sold alongside prior versions of Windows.
* Disk Management: A utility to modify hard disk drive partitions, including shrinking, creating and formatting new partitions.
* Performance Diagnostic Console includes various tools for tuning and monitoring system performance and resources activities of CPU, disks, network, memory and other resources. It shows the operations on files, the opened connections, etc.