1 Win7 For Devs Fund Search

1,708 views

Published on

TechEd Africa session on Windows 7 fundamentals, libraries and search

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,708
On SlideShare
0
From Embeds
0
Number of Embeds
38
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • [TDM. DEV][High level overview of the Windows 7 improve performance & main talking points]Windows 7 maximizes hardware energy efficiency & scalability while maintaining high performance. Energy efficiency is improved through reduced background activity & new support for the trigger starting of system services. Windows 7 also offers improvements in the Windows kernel that enable applications & services to scale efficiently between platforms. Performance of many features & APIs is improved in Windows 7 versus Windows Vista. For example, driver performance on servers is optimized by new user-mode & kernel-mode topology APIs. Graphics rendering is considerably smoother & faster. Accessibility performance is also significantly faster than before.
  • KEY TAKEAWAYS: We are not going to cause the same level of pain as we did with Windows Vista. The changes we made in WV caused problems, but the benefits are here now. The path to Windows 7 should be as smooth as the shift from RTM to SP1.Any software that run on Windows Vista Should run on Windows 7In Windows 7 we are building on the advances we made in Windows Vista to help address emerging trends & technologies & meet the needs we’ve heard from our customers. The most important thing we’ve learned is that there is no one-size-fits all solution that’s best for every business. If anything, businesses are becoming more diverse. Some have a large number of mobile workers, some have workers distributed in branch offices around the world. Windows 7 Enterprise, part of the Microsoft Optimized Desktop, gives you the flexibility to support the diverse needs of your unique business by enabling users to Access Information Anywhere, providing greater levels of Security & Control, & Streamlining PC Management. We will be building these new capabilities without making significant architectural changes to the Windows platform. We want to make this clear so businesses can have confidence that investments they make to optimize their infrastructure with Windows Vista & MDOP today will put them in the best position to deploy Windows 7 when it‘s available.Windows 7 will be built on the Windows Vista foundation & will inherit the quality improvements we’ve made in Windows Vista Service Pack 1 & Windows Server 2008.Compatibility with Windows Vista software, hardware & tools is an important goal of this release. We are not able to make specific statement at this time about system requirements or compatibility levels—but we know that we have engaged with the ecosystem much earlier & are not making the broad types of changes to the kernel, driver, or graphics subsystems that we made in Windows Vista. In building Windows Vista we made some significant changes to the platform that had an impact on compatibility. Those changes were important & had a measurable improvement on security. Windows Vista is the most secure client version of Windows to date & experienced fewer than half the number of security vulnerabilities that Windows XP experienced in its first year, & fewer than one-fifth the number of security vulnerabilities as the nearest competitive operating system on the market. Windows 7 also benefits from these important changes, since we are not undoing the changes we made in Windows Vista that resulted in significant security improvements. This also means that customers still using Windows XP when Windows 7 comes out should expect a similar level of compatibility between Windows XP & Windows 7 as there is between Windows XP & Windows Vista. However, the upgrade from Windows Vista to Windows 7 should be easier, given compatibility between these two products. We recommend customers upgrade to Windows Vista now, then move to Windows 7 because the investments required to test & remediate applications, update deployment tools & processes, upgrade hardware will be similar—& you get the benefits of a more secure, modern operating system for a longer time. In Windows 7 we are not making significant changes to the componentization, setup model, or kernel. There will of course be limited changes made to fix bugs & additional features in those areas, but these are not the places we are making significant investments in this release. The client release of Windows 7 will be available in 32 & 64-bit versions.
  • [TDM, DEV] – High level summary of Windows 7 Fundamentals – a solid foundation for new possibilities.Use this slide only for high level overviewCompatibility & ReliabilityWindows 7 is designed to run on the same hardware as Windows Vista, & to be compatible with applications & device drivers that work with Windows Vista. Windows 7 is the most reliable version of Windows yet. Designed on an improved technology foundation, Windows 7 allows users to reliably start up, shut down, or hibernate their computers without having to worry about losing valuable work. Furthermore, Windows 7 makes it easier than ever to back up & restore data to network drives or DVDs. Windows 7 also improves upon print reliability & performance.Stable & secureWindows 7 includes new & improved security features that make it easier for developers to improve, use, & manage the security of their applications. It comes with a variety of new security features that not only help protect against threats but also limit the damage that attackers can do if they gain access to a computer. Enhancements to the Windows Filtering Platform allow developers to create applications that interact with the packet processing in the networking stack of the operating system. Network data can be filtered & also modified before it reaches its destination.Also, due to changes to the Windows privilege model, system security is more manageable by both developers & their end users. New improvements make it easy to identify critical prompts to ensure that users can access the applications & features they need without compromising their systems. Responsive & ReadyWindows 7 maximizes hardware energy efficiency & scalability while maintaining high performance. Energy efficiency is improved through reduced background activity & new support for the trigger starting of system services. Windows 7 also offers improvements in the Windows kernel that enable applications & services to scale efficiently between platforms. Performance of many features & APIs is improved in Windows 7 versus Windows Vista. For example, driver performance on servers is optimized by new user-mode & kernel-mode topology APIs. Graphics rendering is considerably smoother & faster. Accessibility performance is also significantly faster than before
  • [TDM, DEV][High level overview of Responsive & Ready]Building Power-Efficient Applications Building energy efficient applications that take advantage of the latest power management technologies is a significant challenge developers are facing today. Typically, processor & device manufacturers get all of the attention as their latest offerings are measured & benchmarked. However, a single application can easily prevent the latest generation of hardware from realizing its energy-efficiency potential. For example, a single application that increases the platform timer resolution can decrease battery life by 10 percent.
  • [TDM, DEV][Power Efficiency High level overview]Building Power-Efficient Applications Building energy efficient applications that take advantage of the latest power management technologies is a significant challenge developers are facing today. Typically, processor & device manufacturers get all of the attention as their latest offerings are measured & benchmarked. However, a single application can easily prevent the latest generation of hardware from realizing its energy-efficiency potential. For example, a single application that increases the platform timer resolution can decrease battery life by 10 percent.Extended operation on battery power & the use of energy efficient technologies are key requirements for today’s developers. Windows 7 greatly reduces the number of activities that the operating system performs that prevent use of power-saving modes. It also supports the trigger-starting of system services to enable processors to become idle more often & stay idle longer, which decreases power consumption. In addition, Windows 7 takes advantage of the latest energy-efficient hardware, including network adapters, storage devices, & graphics cards.Windows 7 provides the infrastructure & tools that make it easy for developers to determine the energy impact of their applications. A set of event callbacks enable applications to reduce their activity when the system is on battery power & automatically scale up when the system is on AC power. For applications that involve a background process or service, Windows 7 features new infrastructure to automatically enable background tasks when most appropriate in order to maximize energy efficiency
  • [DEV][Power Drilldown - a setup slide for the power demo]Timer Resolution15.6ms is system default for platform timerLower intervals can impact battery life by 20%Lower then 10ms rarely requiredUser Powercfg to ensure your application is not increasing timer resolutionAvoid Periodic Disk activity8% of power usedRegistry Activity == Disk ActivityUse Animations only when appropriateAdjust to power environment
  • DEMO 1 is Power management (AC vs. battery)Optional (Network enumeration)DEMO 2 is [See powercfg demo script]Talking point:Speed of test & tools (reduce dev cycles)Power & services are tied togetherReduce power consumption techniques
  • [TDM, DEV][SCM High level overview – background for Service Control Manager (i.e. SCM)]After power, the services & long running background activities have very large impact on performance. The Impact of long running background activities:Performance: Responsiveness of the system as a whole, boot latency, shutdown latency, consumes resources (CPU, disk, network…) while the system is running.Reliability: Services are long-running, more prone to crashes, leaks, hang, dependency issues.Security: Long-running attack surface, some services require very high security privileges (run as LocalSystem).Power consumption: Background work prevents idling, resource utilization = power consumption.
  • [TDM, DEV][SCM High level overview – background for Service Control Manager (i.e. SCM)]Performance: Responsiveness of the system as a whole, boot latency, shutdown latency, consumes resources (CPU, disk, network…) while the system is running.Reliability: Services are long-running, more prone to crashes, leaks, hang, dependency issues.Security: Long-running attack surface, some services require very high security privileges (run as LocalSystem).Power consumption: Background work prevents idling, resource utilization = power consumption.
  • [TDM, DEV][SCM details]Practical examples: Wpddevenum started when USB storage devices arrive; TabletInputService starts if digitizer is present; BTHSERV etc.Service Control Manager The Windows 7 Service Control Manager has been extended so that a service can be automatically started & stopped when a specific system event, or trigger, occurs on the system. Trigger-start capabilities remove the need for services to start up automatically at computer startup & then poll or wait for an event to occur, such as device arrival. Common trigger events for services include:Device-class interface arrival: Start a service only when a certain type of device is present or attached on the system.Domain join: Start a service only if the system is joined to a Windows domain.Group policy change: Start a service automatically when group policies are refreshed on the system.IP address arrival: Start a service only when the system is connected to the network.Software developers can use the predefined trigger types for Windows 7 & the configuration options to enable trigger-start capability. The Windows 7 Service Control Manager exposes a new set of APIs that enable a service to register for specific custom trigger events
  • [DEV] – Optional for additional compression between Services & Tasks Which user to use for launching the task?What triggers the task?Schedule (calendar), delay, repeat, auto-expireAt log-on, start-up, lock, unlockOn an event log entryStart only if:Computer is idle, on AC power, connected to a specific network connectionDo what?Run program, send email, show message
  • [TDM, DEV][See attached demo script (content soon to tome)]Converting a Service to Trigger-StartTalk about service new mode – triggered,Configure trigger Show trigger in actionRecap trigger key take away & go do
  • [TDM, DEV][Troubleshooting High level overview]Windows Troubleshooting PlatformWindows 7 delivers a comprehensive & extensible Troubleshooting Platform that uses a PowerShell-based mechanism to troubleshoot & resolve problems. The key components of the Troubleshooting Platform include a troubleshooting package, troubleshooting engine, & troubleshooting wizard. The troubleshooting pack is a collection of PowerShell scripts & relevant metadata. The troubleshooting engine launches a PowerShell runtime to execute a troubleshooting pack, & exposes a set of interfaces to control troubleshooting pack execution. The troubleshooting wizard provides a consistent experience across troubleshooting packs, communicating with the troubleshooting engine to troubleshoot & resolve problems that are specified in a troubleshooting pack. Execution of a troubleshooting pack can also be controlled through a set of PowerShellcomm&lets.The Troubleshooting Platform seamlessly integrates with the Windows 7 PC Solution Center, enabling other applications to execute diagnostics in a similar manner as part of their PC management regimen. The Troubleshooting Platform is configurable by IT professionals through Group Policy for use within the enterprise, & a Windows Troubleshooting Toolkit that allows developers to author troubleshooting packs is also available.
  • [TDM, DEV]The main take away on the Fundamentals it to make sure developer are using Windows 7 as their main dev machine. By running Windows 7 on their machines, they will want to make sure their applications are properly running on Windows 7.
  • Windows 7 & Windows Server 2008 R2 Ecosystem Readiness Program The Windows Ecosystem includes hardware, software, & services partners.  In addition to providing partners with access to the software & tools they need to build & test solutions for Windows 7 & Windows Server 2008 R2, the Ecosystem Readiness Program also facilitates testing multiple components of the ecosystem together to improve the overall user experience. Rather than just focusing on getting a specific OEM product, software application, or hardware device certified, we will be bringing multiple components together to verify a rich user experience that delivers quality, reliability, & performance as well as innovation through new feature adoption. To join the Windows 7 & Windows Server 2008 R2 Ecosystem Readiness Program click here if you are a software developer & here if you develop hardware.herehere
  • 2 demos at least, maybe more
  • [TDM, DEV][Why - Windows 7 explorer overview] - The new windows explorerOver 400M people use Windows Explorer to find & organize their digital content the explorer is more focused around storage..navigation only shows locations that you care about…its cleaner we’ve improved search relevance algorithms, added tools like search tips & one-click previews that make it easier to find that file…no matter where you put it we’ve made major investments in new powerful features…libraries & federated search…without making you learn a new UI. This is seamess.Cleaner – Navigation is intuitive & optimized around storage; less overall clutterEasier – Improved relevance, search tips & easy previews make searching & browsing easierSeamless – Libraries & federated search offer incredible power without learning a new UI we’ll get to this in more detail in the demos show the power & flexibility that we’ve added same familiar explorer rather than redesigning the whole explorer…we’ve focused on performance & the basics…it’s just better
  • 1 Win7 For Devs Fund Search

    1. 1. Windows 7 for Developers I<br />Lynn Langit<br />http://blogs.msdn.com/SoCalDevGal<br />Microsoft – Developer Evangelist<br />
    2. 2. 7 Ways on Windows 7<br />Fundamentals<br />Libraries<br />Taskbar<br />Ribbon<br />Sensor and Location<br />Multi Touch<br />Graphics<br />*AppCompat*<br />
    3. 3. Improved Fundamentals<br />Increase<br />Decrease<br />MemoryReference set, Graphics<br />Disk I/ORegistry Reads, Indexer<br />PowerDVD Playback, Panel, Timers<br />SpeedFasterBoot, Device Ready<br />ResponsivenessStart menu, Taskbar<br />Scale256 cores<br />
    4. 4. Windows 7 Builds on Windows Vista<br />Few Changes: Most software that runs on Windows Vista will run on Windows 7 - exceptions will be low level code (AV, Firewall, Imaging, etc). <br />Hardware that runs Windows Vista well will run Windows 7 well.<br />Windows 7<br />Few Changes: Focus on quality & reliability improvements<br />Deep Changes: New models for security, drivers, deployment, & networking<br />
    5. 5. Improved Fundamentals<br />
    6. 6. Responsive & Ready<br />
    7. 7. Power Efficiency<br />
    8. 8. Power Efficiency– Timer Coalescing API<br />Platform energy efficiency can be improved by extending idle periods<br />New timer coalescing API enables callers to specify a tolerance for due time<br />Enables the kernel to expire multiple timers at the same time<br />BOOL<br />WINAPI<br />SetWaitableTimerEx(<br /> __in H&LE hTimer,<br /> __in const LARGE_INTEGER *lpDueTime,<br /> __in LONG lPeriod,<br /> __in_opt PTIMERAPCROUTINE pfnCompletionRoutine,<br /> __in_opt LPVOID lpArgToCompletionRoutine,<br /> __in_opt PREASON_CONTEXT WakeContext,<br />__in ULONG TolerableDelay<br /> );<br />Timer tick<br />15.6 ms<br />Vista<br />Periodic Timer Events<br />Windows 7<br />
    9. 9. Improved Fundamentals<br />Power Management Demo<br />Demo<br />
    10. 10. Impact of Background ActivitiesHundreds of Activities in Your Background<br />Long running services affect the system<br />
    11. 11. Short Lived Services Equal…<br />
    12. 12. Trigger Start Services<br />
    13. 13. Task Triggers & Conditions<br />TaskTriggers<br />Task Conditions<br />Calendar<br />Boot<br />Logon<br />Idle<br />Event log based entry<br />Workstation lock<br />Workstation unlock<br />Idle condition<br />Stop when not idle<br />AC power only<br />Stop on battery<br />Wake computer from sleep<br />Specific or any network connection<br />
    14. 14. Service or Scheduled Task?<br /><ul><li>Continuous activity from boot to shutdown
    15. 15. Service Control Manager (SCM) programming model
    16. 16. Can specify dependency
    17. 17. Short duration action
    18. 18. Idle activity
    19. 19. Take action on user login
    20. 20. Standalone executable or out-of-process COM server
    21. 21. Generally execute in user session</li></ul>Windows Service<br />Scheduled Task<br />
    22. 22. Improved Fundamentals<br />Converting a Service to Trigger-Start Service<br />Demo<br />
    23. 23. Windows Troubleshooting Platform<br />Troubleshooting Packs are<br />Launched by user or application<br />Detects & resolves configuration issues<br />Verifies that configuration has been set properly<br />Troubleshoot config<br />Verify if desired user state can be supported<br />Set configuration to support desired state<br />
    24. 24. https://winqual.microsoft.com<br />Provides secure (free) 3rd party access to Watson events<br /> Enables ISVs, IHVs, & OEMs (over 2,200) to:<br />Access Failure event data <br />Quickly prioritize work to fix crashes<br />Easily identify security related events!<br />Easily register a response<br />Supported Events<br />32, 64-Bit Crashes <br />Special Exceptions<br />Buffer Overrun<br />Data Execute Prevention (NX)<br />Windows Mobile Events<br />Windows Vista “Hung Application” event<br />“Generic Events” – Instrumentation defined by partners<br />Developer Portal Web Services<br />Provide programmatic access to event lists & crash dumps<br />Client implementation shipping as an open source component on CodePlex<br />Windows Error Reporting<br />
    25. 25. Call to Action: Fundamentals<br />Read the application quality cookbook<br />Make your application Windows 7 compatible<br />UAC aware, Support x64, Sign files & drivers, no OS version checking, support multi user sessions…. <br />Install to correct folders / transactional uninstall<br />Self Certified with new Logo automatic tool<br />Windows 7 resources optimization<br />Power aware<br />Retire old “XP” services to Windows 7 tasks <br />Use triggered Services<br />Provide troubleshooting pack & WER<br />
    26. 26. Windows 7 Readiness Programs<br />
    27. 27. Libraries and Search<br />demo<br />
    28. 28. Vista!<br />
    29. 29. Powerful Instant Search<br />Arrangement Views<br />Federated Search<br />Libraries<br />Easy Previews<br />Cleanernavigation<br />Rich Metadata<br />Windows 7 &quot;New&quot; Explorer<br />
    30. 30. Libraries<br />
    31. 31. Libraries<br />New entry points to user data<br />i.e. FOLDERID_ MusicLibrary<br />Collections of user folders<br />Common store<br />Each folder is indexed<br />Storage backed<br />Default save location<br />Work like folders<br />
    32. 32. Libraries<br />Your application should<br />Support open & save in libraries<br />Select & consume library contents<br />Stay in sync with library locations<br />e.g., Windows Media Player<br />Windows 7 enables this via<br />Common File Dialog<br />Native: IFileDialog<br />Managed: System.Windows.Forms.FileDialog<br />Shell abstractions (i.e., IShellFolder)<br />New Library API to manage libraries<br />
    33. 33. Windows API Code Pack for the .NET Library<br />Managed class library to access to Win 7 features<br />Windows Shell namespace <br />Windows Vista and Windows 7 Task Dialogs. <br />Support for Shell property system. <br />Taskbar Jumplists, Icon Overlay and Progress bar. <br />Common file dialogs<br />Support for Direct3D 11.0 and DXGI 1.0/1.1 APIs. <br />Sensor Platform APIs <br />Extended Linguistic Services APIs <br />http://code.msdn.com/windowsAPICodePack<br />
    34. 34. Demo - Search<br />
    35. 35. Federated SearchConsistent experience across providers<br />Document Repository<br />Enterprise Data Store<br />Enterprise Application<br />
    36. 36. How Federated Search Works<br />Rich client experience<br />Previews, metadata, drag-&-drop<br />Familiar Explorer paradigms<br />Simple & lightweight integration<br />No client code<br />Any server platform<br />Standards-based<br />OpenSearch 1.1<br />RSS & ATOM<br />Authentication<br />Integrated or custom<br />2. Windows sends search terms as HTTP request<br />1. Search Connector (.osdx) Installed<br />3. RSS results returned from server<br />
    37. 37. Federated Search<br />
    38. 38. IE8 Considerations<br />More…<br />
    39. 39. Page Load Times<br />
    40. 40. CSS 2.1 Compliance<br />http://samples.msdn.microsoft.com/ietestcenter<br />
    41. 41. Detecting Internet Explorer More Effectively<br />http://msdn.microsoft.com/en-us/ library/ms537509.aspx<br />Detect features<br />Define compatibility modes<br />In page markup –OR-<br /> &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE7&quot; /&gt;<br />In configuration file<br />In code<br />
    42. 42. IE – Protected Mode<br />Protected Mode is default in Win7 - Resource: <br />“Understanding & Working in Protected Mode Internet Explorer”<br />http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ietechcol/dnwebgen/protectedmode.asp<br />
    43. 43. Track Resources<br />Windows 7 RC Training for Developers<br />Windows content on Channel 9  <br />Windows 7 Developer Center on MSDN<br />Windows Application Compatibility Roadmap<br />Windows 7 Blog for Developers<br />My blog series – http://blogs.msdn.com/SoCalDevGal#Win7DevSeries<br />My MSDN show – MSDN geekSpeak<br />My Facebook group ‘Windows 7 Developers’<br />Links, Video & Screencasts<br />
    44. 44. Related Content<br />Breakout Sessions <br />WCL201 Developing for Windows 7 <br />WCL301 Windows Application Readiness for Developers <br />WCL302 Optimizing Your Application for the Windows 7 User Experience<br />Whiteboard Session<br />WTB215 Windows Client Development Discussion<br />Hands-on Lab<br />WCL08-HOL Windows 7: Mitigating Application Issues Using Shims<br />
    45. 45. Tech·Ed Africa 2009 sessions will be made available for download the week after the event from: www.tech-ed.co.za<br />www.microsoft.com/teched<br />International Content & Community<br />www.microsoft.com/learning<br />Microsoft Certification & Training Resources<br />http://microsoft.com/technet<br />Resources for IT Professionals<br />http://microsoft.com/msdn<br />Resources for Developers<br />Resources<br />
    46. 46. Required Slide<br />10 pairs of MP3 sunglasses to be won<br />Complete a session evaluation and enter to win!<br />
    47. 47. © 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.<br />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.<br />

    ×