msdn TVP – part 1 of 2 October 2006 Windows Vista for developers Beyond NetFx3 Daniel Moth Developer & Platform Group, Microsoft http://www.danielmoth.com/Blog [email protected].
Download
Report
Transcript msdn TVP – part 1 of 2 October 2006 Windows Vista for developers Beyond NetFx3 Daniel Moth Developer & Platform Group, Microsoft http://www.danielmoth.com/Blog [email protected].
msdn
TVP – part 1 of 2
October 2006
Windows Vista for developers
Beyond NetFx3
Daniel Moth
Developer & Platform Group, Microsoft
http://www.danielmoth.com/Blog
[email protected]
NetFx3 – Not Today’s Topic
The Managed Code
Programming Model
for Windows
AGENDA
Glass
Task Dialog
Power aware
Windows Error Reporting
Restart & Recovery APIs
Restart Manager
Sidebar Gadgets
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
Task Dialog
Mobile PC – Power Aware
New power plans
Balanced
Power Saver
High Performance
Developers should
Register for notification
Handle notification
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
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
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
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
Windows Installer (MSI)
• Fewer reboots when using the
Key Microsoft Office 2007 Applications
• Automatically restart after a
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
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
Lighting Up on Windows Vista
Top 10 Developer Calls To Action
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
http://msdn.microsoft.com/windowsvista/prodinfo/top10/
Resources
Demos etc from this talk +
links to other vista resources
http://www.danielmoth.com/Blog
© 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only.
MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.