Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Vista for developers Beyond NetFx3 Daniel Moth Developer & Platform Group, Microsoft msdn.

Similar presentations


Presentation on theme: "Windows Vista for developers Beyond NetFx3 Daniel Moth Developer & Platform Group, Microsoft msdn."— Presentation transcript:

1 Windows Vista for developers Beyond NetFx3 Daniel Moth Developer & Platform Group, Microsoft http://www.danielmoth.com/Blog daniel.moth@microsoft.com msdn TVP – part 1 of 2 October 2006

2 NetFx3 – Not Today’s Topic The Managed Code Programming Model for Windows

3 Glass Task Dialog Power aware Windows Error Reporting Restart & Recovery APIs Restart Manager Sidebar Gadgets AGENDA

4 Glass Helps focus the user on the “important” area Free, in non-client areas In client areas Extend it inwards from any side Paint it black Arbitrary regions WPF even easier Don’t abuse it DEMO

5 Task Dialog DEMO

6 Mobile PC – Power Aware New power plans Balanced Power Saver High Performance Developers should Register for notification Handle notification DEMO

7 Windows Error Reporting …and winqual New User Experience In addition to crashes, hangs are also detected Privacy evaluation, Queuing and transport Problem Reports and Solutions Response management New Public APIs Adding additional file and memory data to a report (inc. minidump & heap information) Create reports for custom events DEMO

8 Restart API Register to be restarted after fatal problems Registration also used for Restart Manager Restarts process after patch installation All applications should support restart Especially if support document recovery How it works Register command-line that should be called every execution HRESULT RegisterApplicationRestart (IN PCWSTR pwzCommandline, DWORD dwFlags) After fatal event is reported, app is restarted Fatal events block user tasks Automatically restarting saves users from having to re-open the application DEMO

9 Recovery APIs Attempt to recover data after a fatal event Users should not lose any work to an app bug How it works 1. App registers a “recovery callback” every execution HRESULT RegisterApplicationRecoveryCallback (IN RECOVERY_ROUTINE RecoveryRoutine, IN PVOID pvParameter) 2. Recovery routine called after data collection Application’s code attempts to recover user work Flush to disk, repair on next run of application Repair data in memory, save to disk Need to call RecoveryInProgress() every 5 seconds to heartbeat Call RecoveryFinished() to signal recovery is completed DEMO

10 Windows Installer (MSI) Fewer reboots when using the Windows Add/Remove Programs feature Developers can reduce reboots for installations and updates by using the Windows Installer v4.0 Key Microsoft Office 2007 Applications Automatically restart after a reboot due to an installation or update Recreate application state upon restart Restart Manager Overview With the Restart Manager technology installers can Automatically shutdown only the applications and services holding a file to be updated When available, leverage specific application functionality to restore the user to the state they were in before the restart When a reboot cannot be avoided, automatically re-launch apps after reboot

11 Restart Manager, Call to Action Installer software should call the Restart Manager APIs to shutdown and restart necessary applications/services Applications and Services should be restart manager "aware" and behave appropriately when being shutdown due to an install To minimize the impact on users, applications can register for restart with the Restart Manager, periodically save transient state and restore it on restart DEMO

12 Gadgets for Windows Sidebar “Gadget” Lightweight and task-specific applet Sidebar is a container for gadgets and more Manager, Picker, Installer, Host Developer model HTML + Script Installed to the local machine “c:\users\ … \gadgets” Packaged (Folder, Zip, CAB) Manifest, HTML file, HTML settings DEMO

13 1.Follow the Windows Vista style guidelines 2.Enrich the user experience 3.Enable users to visualize, search, and organize 4.Run securely 5.Design for reliability and manageability 6.Establish a customer feedback loop 7.Build for connected systems 8.Bring data to the user with RSS 9.Make document data accessible 10.Build for mobility Lighting Up on Windows Vista Top 10 Developer Calls To Action http://msdn.microsoft.com/windowsvista/prodinfo/top10/

14 Resources Demos etc from this talk + links to other vista resources http://www.danielmoth.com/Blog

15 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "Windows Vista for developers Beyond NetFx3 Daniel Moth Developer & Platform Group, Microsoft msdn."

Similar presentations


Ads by Google