Upload
llangit
View
1.540
Download
2
Tags:
Embed Size (px)
DESCRIPTION
TechEd Africa session on Windows 7 fundamentals, libraries and search
Citation preview
Windows 7 for Developers ILynn Langithttp://blogs.msdn.com/SoCalDevGalMicrosoft – Developer Evangelist
7 Ways on Windows 7
Fundamentals
Libraries
Taskbar
Ribbon
Sensor and Location
Multi Touch
Graphics
*AppCompat*
Improved Fundamentals
MemoryReference set, Graphics
Disk I/ORegistry Reads, Indexer
PowerDVD Playback, Panel, Timers
SpeedFaster Boot, Device Ready
ResponsivenessStart menu, Taskbar
Scale256 cores
IncreaseDecrease
Few Changes: Most software that runs on Windows Vista will run on Windows 7 - exceptions will be low level code (AV, Firewall, Imaging, etc).
Hardware that runs Windows Vista well will run Windows 7 well.
Windows 7
Few Changes: Focus on quality & reliability improvements
Windows 7 Builds on Windows Vista
Deep Changes: New models for security, drivers, deployment, & networking
Improved Fundamentals
Compatible & reliable
• Designed to run on the same hardware as Windows Vista
• Drivers & Applications backward compatible
Stable & secure
• Improved Security & UAC
• Windows Filtering Platform
Responsive & Ready
• Building Power Efficient applications
• Service Control Manager
• Windows Troubleshooting Platform
Responsive & Ready
•Extended operation on battery power
•Leverage latest energy-efficient hardware
•New infrastructure & tools for developers & testers
Power Efficient applications
•Trigger-starting of system services
Service Control Manager
•Automated troubleshooting problem resolution
•Highly configurable & integrated with Windows 7 Solution Center
Windows Troubleshooting
Platform
Power EfficiencySoftware performance = Power Efficiency• “All day” mobile PC battery life
• TCO – reduced cost of energy consumption• New power consumption regulatory compliance• Environmental consortiums for computing (Green Computing)
Windows 7 power optimization• Less than 2% CPU activity when the system is idle• No disk activity when the system is idle• Reduced number of OS activities that prevent use of CPU’s
power-saving modes.
Power Efficiency – Timer Coalescing API
Platform energy efficiency can be improved by extending idle periods
New timer coalescing API enables callers to specify a tolerance for due timeEnables the kernel to expire multiple timers at the same time
Timer tick15.6 ms
Periodic Timer Events
Windows 7
Vista
BOOLWINAPISetWaitableTimerEx( __in H&LE hTimer, __in const LARGE_INTEGER *lpDueTime, __in LONG lPeriod, __in_opt PTIMERAPCROUTINE pfnCompletionRoutine, __in_opt LPVOID lpArgToCompletionRoutine, __in_opt PREASON_CONTEXT WakeContext, __in ULONG TolerableDelay );
Improved FundamentalsPower Management Demo
Demo
Impact of Background ActivitiesHundreds of Activities in Your Background
Long running services affect the system
Performance Reliability
Security Power consumption
Short Lived Services Equal…Better
Performance Improves
responsiveness to the user
Results in shorten Boot, Shutdown, Logoff, etc times
Better Reliability
Reduce memory leaks
Reduce the total amount of system
crashes, hangs
Better Security
Have smaller attack surface
Less Power Consumption
More efficient CPU utilization
Increase battery life by reaching idle state faster
for longer periods
Trigger Start Services
SCM registers for system events via providers:
• Device arrival• IP address• Domain join & leave• Group policy updates• Custom ETW (Event
Tracing for Windows) events
SCM starts or stops registered services:
• TabletInputService started only if digitizer is present
• StorSvc starts when group policy updates are applied, automatically stops
Task Triggers & Conditions
Task Triggers
CalendarBootLogonIdleEvent log based entryWorkstation lockWorkstation unlock
Task Conditions
Idle conditionStop when not idleAC power onlyStop on batteryWake computer from sleepSpecific or any network connection
Service or Scheduled Task?W
indo
ws
Serv
ice • Continuous activity
from boot to shutdown
• Service Control Manager (SCM) programming model
• Can specify dependency Sc
hedu
led
Task
• Short duration action
• Idle activity• Take action
on user login• Standalone
executable or out-of-process COM server
• Generally execute in user session
Improved FundamentalsConverting a Service to Trigger-Start Service
Demo
Windows Troubleshooting Platform
Troubleshooting Packs areLaunched by user or applicationDetects & resolves configuration issuesVerifies that configuration has been set properly
Troubleshoot configVerify if desired user state can be supportedSet configuration to support desired state
https://winqual.microsoft.comProvides secure (free) 3rd party access to Watson eventsEnables ISVs, IHVs, & OEMs (over 2,200) to:
Access Failure event data Quickly prioritize work to fix crashesEasily identify security related events!Easily register a response
Supported Events32, 64-Bit Crashes Special Exceptions
Buffer OverrunData Execute Prevention (NX)
Windows Mobile EventsWindows Vista “Hung Application” event“Generic Events” – Instrumentation defined by partners
Developer Portal Web ServicesProvide programmatic access to event lists & crash dumpsClient implementation shipping as an open source component on CodePlex
Windows Error Reporting
Call to Action: FundamentalsRead the application quality cookbookMake your application Windows 7 compatible
UAC aware, Support x64, Sign files & drivers, no OS version checking, support multi user sessions…. Install to correct folders / transactional uninstallSelf Certified with new Logo automatic tool
Windows 7 resources optimizationPower awareRetire old “XP” services to Windows 7 tasks Use triggered Services
Provide troubleshooting pack & WER
Windows 7 Readiness Programs
• Make sure your apps work with Windows 7• Publish your support policy for Windows 7• List your solutions on the Compatibility
Center
MS will tell our customers
about your Apps
• Focused on Compatible Applications
• Simple Process No 3rd party testing required
Get the Windows
7 Logo
Libraries and Searchdemo
Vista!
Rich Metadata
Cleaner navigation
Easy Previews
Powerful Instant SearchArrangement Views
Federated Search
Libraries
Windows 7 "New" Explorer
Libraries
Libraries
New entry points to user datai.e. FOLDERID_ MusicLibrary
Collections of user foldersCommon storeEach folder is indexed
Storage backedDefault save locationWork like folders
LibrariesYour application should
Support open & save in librariesSelect & consume library contentsStay in sync with library locations
e.g., Windows Media Player
Windows 7 enables this viaCommon File Dialog
Native: IFileDialogManaged: System.Windows.Forms.FileDialog
Shell abstractions (i.e., IShellFolder)New Library API to manage libraries
Windows API Code Pack for the .NET Library
Managed class library to access to Win 7 features
Windows Shell namespace Windows Vista and Windows 7 Task Dialogs. Support for Shell property system. Taskbar Jumplists, Icon Overlay and Progress bar. Common file dialogsSupport for Direct3D 11.0 and DXGI 1.0/1.1 APIs. Sensor Platform APIs Extended Linguistic Services APIs
http://code.msdn.com/windowsAPICodePack
Demo - Search
Federated SearchConsistent experience across providers
Document Repository
Enterprise Data Store
Enterprise Application
How Federated Search WorksRich client experience
Previews, metadata, drag-&-dropFamiliar Explorer paradigms
Simple & lightweight integrationNo client codeAny server platform
Standards-basedOpenSearch 1.1RSS & ATOM
AuthenticationIntegrated or custom
1. Search Connector (.osdx) Installed
2. Windows sends search terms as HTTP request
3. RSS results returned from server
Federated Search
Search providers should
• Accept URL queries• Example: http://www.contoso.com/q={searchTerms}• Return rich RSS results
Windows 7 enables this via
• XML description of search connector• Property mapping• Thumbnail & preview URLs• Custom view descriptions
IE8 ConsiderationsMore…
Page Load Times# Site Firefox Chrome IE
1 google.com
2 yahoo.com
3 live.com
4 msn.com
5 youtube.com
6 microsoft.com
7 wikipedia.com
8 blogger.com
9 facebook.com
10 qq.com
11 baidu.com
12 myspace.com
13 wordpress.com
# Site Firefox Chrome IE
14 ebay.com
15 sina.com.cn
16 mozilla.com
17 adobe.com
18 aol.com
19 amazon.com
20 apple.com
21 soso.com
22 xunlei.com
23 163.com
24 google.cn
25 ask.com
Total 4 9 12
CSS 2.1 Compliance
IE7
IE8 (Compat M
ode)
IE8 (Standard
s)
Firefox 3
.0.6
Opera 9.63
Safari 3.2.2
Chrome 1.0
Safari 465%
70%
75%
80%
85%
90%
95%
100%
% P
ass
ing T
est
s
http://samples.msdn.microsoft.com/ietestcenter
Detecting Internet Explorer More Effectively
http://msdn.microsoft.com/en-us/ library/ms537509.aspxDetect featuresDefine compatibility modes
In page markup –OR- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
In configuration fileIn code
IE – Protected ModeProtected Mode is default in Win7 - Resource:
“Understanding & Working in Protected Mode Internet Explorer”http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ietechcol/dnwebgen/protectedmode.asp
Track ResourcesWindows 7 RC Training for Developers Windows content on Channel 9 Windows 7 Developer Center on MSDN Windows Application Compatibility Roadmap Windows 7 Blog for Developers
My blog series – http://blogs.msdn.com/SoCalDevGal #Win7DevSeriesMy MSDN show – MSDN geekSpeak My Facebook group ‘Windows 7 Developers’
Links, Video & Screencasts
Related ContentBreakout Sessions WCL201 Developing for Windows 7 WCL301 Windows Application Readiness for Developers WCL302 Optimizing Your Application for the Windows 7 User Experience
Whiteboard SessionWTB215 Windows Client Development Discussion
Hands-on LabWCL08-HOL Windows 7: Mitigating Application Issues Using Shims
www.microsoft.com/teched
International Content & Community
http://microsoft.com/technet
Resources for IT Professionals
http://microsoft.com/msdn
Resources for Developers
www.microsoft.com/learning
Microsoft Certification & Training Resources
Resources Tech·Ed Africa 2009 sessions will be made available for download the week after the event from: www.tech-ed.co.za
Complete a session evaluation and enter to win!
10 pairs of MP3 sunglasses to be won
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista & other product names are or may be registered trademarks &/or trademarks in the U.S. &/or other countries.
The information herein is for informational purposes only & represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, & Microsoft cannot guarantee the accuracy of any information provided after the
date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.