1 / 25

The Windows API Code Pack

The Windows API Code Pack. Kate Gregory kate@gregcons.com www.gregcons.com/kateblog Session Code: DEV309. Windows 7 Builds on Windows Vista.

kirima
Télécharger la présentation

The Windows API Code Pack

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Windows API Code Pack Kate Gregory kate@gregcons.com www.gregcons.com/kateblog Session Code: DEV309

  2. Windows 7 Builds on Windows Vista • 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. Few Changes: Focus on quality and reliability improvements Deep Changes: New models for security, drivers, deployment, and networking

  3. Improved Fundamentals Increase Decrease MemoryReference set, Graphics Disk I/ORegistry Reads, Indexer PowerDVD Playback, Panel, Timers SpeedFasterBoot, Device Ready ResponsivenessStart menu, Taskbar Scale256 cores

  4. Building A Great Windows 7 Application • Multitouch • Windows Ribbon • Sensors Differentiate • Windows Taskbar • Libraries • Fundamentals Optimize • Version Checking • User Account Control • Removed Components Get Compatible

  5. What is Code Pack? • 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 dialogs • Direct3D 11.0 and DXGI 1.0/1.1 APIs • Sensor Platform APIs • Extended Linguistic Services APIs • http://code.msdn.com/windowsAPICodePack

  6. A few highlights from Code Pack • All today’s demos are from the samples that ship with it • All are shipped in both VB and C# • Samples are designed as a source of code for you • But you would hardcode so much more • Run the apps to experiment and see what you like

  7. I’m going to show you • Taskbar Jumplists • Taskbar Overlays • Taskbar Thumbnail Buttons • Restart and Recovery • Power Management

  8. The New Windows 7 Taskbar • Evolution of launch surfaces • Clean, sleek, elegant design • Enhances user productivity, making switching between windows much easier • What users do most they can reach quickest • Information is always present

  9. Windows 7 Taskbar – Jump Lists • Mini Start Menu for your program • Access to key destinations and tasks • Customizable

  10. Windows 7 Taskbar – Jump Lists Pinned category Destinations (“nouns”) Known categories Custom categories User Tasks Tasks (“verbs”) Taskbar Tasks

  11. demo Taskbar - Jumplists

  12. Windows 7 Taskbar – Icons • Face of your program • Large and small icons • Only customer can pin • Color hot-track • Icon Overlay • Best place for notifications • Appears over your program’s large icon • Progress bar • Best place for updates on progress • Appears on your taskbar button

  13. demo Taskbar - Overlays

  14. Windows 7 Taskbar – Thumbnails • Remote-control for a window • For vital commands • Accessible from taskbar thumbnail • Up to seven buttons

  15. demo Taskbar – Thumbnail Buttons and Clipping

  16. Restart and Recovery • Register for Recovery • Chance to save your information on another thread • OS calls your code for you • Register for Restart • OS will run your app again (with a hint) after it dies

  17. demo Restart and Recovery

  18. Power Management • Is the machine running on battery? • What can your application do to extend battery life? • Autosave less frequently • Autosave before critical battery reached • Scale back the user experience • Graphics richness • Reduce the frequency of data updates • Stop spinning the CD for sound effects access • Reduce CPU work loads • Number of threads, thread priorities • Use hardware (not software) rendering for graphics • Turn off or constrain background processing • Defer unnecessary tasks

  19. demo Power Management

  20. Code Pack • Gets managed developers working on Windows 7 NOW • WPF or Winforms • C# or VB • Not the only way to get there • Some of this is coming in WPF (.NET 4) • You could do your own interop – but why? • Others have written other wrappers • Documentation and samples • Discussions on Code Gallery • If you need to change or redistribute, you can http://code.msdn.com/WindowsAPICodePack

  21. question & answer

  22. Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Resources • www.microsoft.com/teched Sessions On-Demand & Community • www.microsoft.com/learning • Microsoft Certification & Training Resources • http://microsoft.com/technet • Resources for IT Professionals • http://microsoft.com/msdn Resources for Developers

  23. Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!

  24. Required Slide © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and 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, and 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.

More Related