The upcoming release of the Windows SDK for Windows 7 and .NET Framework 3.5 SP1 contains a comprehensive set of Win32 samples illustrating Windows 7 technologies. Over 1,200 samples were changed since the release of the Windows SDK for Windows 7 RC release. Many “new to Win 7” samples were added, simplified, or extended, and many older samples were updated to support Windows 7 as well as older operating systems.
This is the first in a series of posts that describe new and updated samples in the Windows 7 SDK. This post identifies Multimedia samples that are new to Windows 7 or updated to support Windows 7. Technologies include Animation, Audio, Direct2D, DirectWrite, GDI, Media Foundation, Windows Imaging Component (WIC), Windows Media Player (WMP), and Windows Portable Device (WPD).
New Win32 Samples in Windows SDK for Windows 7: Networking and Related Services
New Win32 Samples in Windows SDK for Windows 7: Multimedia
New Win32 Samples in Windows SDK for Windows 7: Security
New Win32 Samples in Windows SDK for Windows 7: Systems Management
New Win32 Samples in Windows SDK for Windows 7: Open Packaging Conventions (OPC)
New Win32 Samples in Windows SDK for Windows 7: Tablet PC and MultiTouch
New Win32 Samples in Windows SDK for Windows 7: Web
New Win32 Samples in Windows SDK for Windows 7: Windows Base
New Win32 Samples in Windows SDK for Windows 7: Windows User Interface
New Win32 Samples in Windows SDK for Windows 7: Windows XML Paper Specification (XPS)
New Win32 Samples in Windows SDK for Windows 7: Communication
For build instructions and additional information about the samples, see the Readme.txt files and other documents in the SDK sample folders. For general sample building instructions, refer to the Samples Reference page that installs with the Windows SDK, and the SDK Release Notes (under the Start menu, in All Programs > Microsoft Windows SDK v7.0). By default, Win32 samples are installed under the following path: C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples.
Send your thoughts to the Windows SDK Feedback alias. Tell us how you use the SDK and what we can do to improve your development experience.
New/updated Multimedia Samples in the Windows SDK for Windows 7
Location (under Samples)
Windows Animation Manager Timer Driven
Demonstrates how to use Windows Animation Manager with the Animation Timer, utilizing GDI for rendering the background color of a window.
Windows Animation Manager - Without Timing
Demonstrates how to use Windows Animation Manager without the Animation Timing, utilizing Direct2D for rendering the background color of a window and syncing to the refresh rate.
Windows Animation Manager - With A Timer
AEC-MicArray DMO sample
Demonstrates how to use the AEC-MicArray DMO to obtain echo-free or microphone-array processed microphone signals.
Core Audio Sample : CaptureSharedEventDriven
Demonstrates how to user Core Audio APIs to capture data from the specified input device and writes it to a uniquely named .WAV file in the current directory.
Core Audio Sample : CaptureSharedTimerDriven
A console application that demonstrates how to capture data from the specified input device and writes it to a uniquely named .WAV file in the current directory.
Core Audio APIs: DuckingCaptureSample
A chat application. The client - reads audio samples from the default console device and discards the output.
Core Audio APIs : DuckingMediaPlayer
Demonstrates the use of Core Audio APIs to implement a media player that controls volume based on volume change request received from other apps
Core Audio APIs: EndpointVolume
Demonstrates an Endpoint Volume Changing sample application.
Demonstrates a simple MidiPlayer
Uses the Core Audio APIs to render audio data to an output device, specified by the user. Demonstrates event-driven buffering for a rendering client in exclusive mode. For an exclusive-mode stream, the client shares the endpoint buffer with the audio device.
Uses the Core Audio APIs to render audio data to an output device, specified by the user. Demonstrates timer-driven buffering for a rendering client in exclusive mode. For an exclusive-mode stream, the client shares the endpoint buffer with the audio device.
Core Audio APIs : RenderSharedEventDriven
Demonstrates the use of WASAPI in implementing an application that renders to the specified device by using event buffering.
Core Audio API: RenderSharedTimerDriven
Demonstrates the use of WASAPI in creating an application that renders audio to the specified device
Simple "Hello, World" Direct2D application that draws text to the screen.
Demonstrates how to use Direct2D to draw the text, “Hello, World.”
Direct3D/Direct2D Interoperability Sample
Demonstrates how to use Direct2D to project 2D content onto a 3D surface.
Multimedia\Direct2D\DXGI Interoperation Sample
GDI/Direct2D Interoperability Sample
Demonstrates how to write Direct2D content to a GDI DC.
Direct2D Geometry Realization Sample
Demonstrates how to use meshes and A8 render targets to improve performance when rendering complex shapes.
Interactive 3D Text Sample
Demonstrates how to use DirectWrite and Direct2D to create editable 3D text.
Direct2D ListView Control Sample
Demonstrates how to use Direct2D to create a list view control.
Direct2D Antialiasing Sample
Demonstrates different antialiasing rendering modes.
Direct2D Saving an Image as a File Example
Demonstrates how to write Direct2D content to an image file.
Simple Direct2D Application
Demonstrates a simple Direct2D application. It draws text, images, shapes, and creates a pattern.
Direct2D Animate Along a Path Sample
Demonstrates how to animate an object along a geometric path.
Direct2D Text Animation Sample
Demonstrates different ways to render animated text.
Demonstrates how to use a DMO.
A Choose Font Dialog Using DirectWrite
Demonstrates choosing a font face, size and weight.
Custom Font Loader Sample
Demonstrates how to load a custom font embedded in an application using DirectWrite.
DirectWrite Custom Layout Sample
Demonstrates how a custom layout can utilize the information from script itemization, bidi analysis, line breaking analysis, and shaping to accomplish text measurement and fitting, line breaking, basic justification, and drawing.
Font Enumeration Sample
Demonstrates how to enumerate fonts using DirectWrite and outputs the font family names to the console.
DirectWrite - GDI Interoperation Sample
Demonstrates how DirectWrite can convert from GDI font objects and display DirectWrite text on a GDI surface.
Hello World using DirectWrite
Demonstrates how to use DirectWrite to render simple text, text with multiple formats, and customized text with a custom renderer.
DirectWrite layout sample
Demonstrates various DirectWrite features such as: Glyph rendering, Complex script shaping, Script analysis, Bidi ordering (?abc?), Line breaking, Font fallback, Font enumeration, ClearType rendering, OpenType styles, Inline objects, Trimming, and Selection hit-testing.
DirectWrite Text Rendering Sample
Demonstrates the rendering capabilities of DirectWrite, both to a DIB and a Direct2D surface.
A simple version of Hello World with DirectWrite
A version of the DirectWrite Hello World sample that uses simple text only.
DirectWrite Text Dialog Sample
Demonstrates font enumeration, changing font face, style, weight, underline, and size using DirectWrite. Displays the changes in real time.
Windows Color System Color Translation Sample
Demonstrates API usage of various new Vista Windows Color System APIs used to translate color values from a source device to a destination device.
Media Foundation: Decoder Sample
Demonstrates how to implement a decoder for Media Foundation
Demonstrates Media Foundation video capture
Demonstrates how to capture video and save it to an MP4 or WMV file.
Source for TopoEdit for Media Foundation
Demonstrates how to create and work with topologies in media foundation, as well as how to handle basic playback.
Windows Imaging Component Progressive Decoding
Demonstrates how to decode a progressively encoded image and access each progressive level. Uses Direct2D and DirectWrite for image and text rendering.
WIC Gif Animation
Demonstrates how to load gif metadata using WIC to animate a gif image.
WIC D2D Image Viewer
Demonstrates how to decode an image using WIC and render it using Direct2D.
WIC GDI Image Viewer
Demonstrates how to decode an image using WIC and render it using GDI.
WIC GdiPlus Image Viewer
Demonstrates how to decode an image using WIC and render it using GDI Plus.
Windows Animation Manager App Driven Sample
Windows Animation Manager Custom Interpolator Sample
Demonstrates how to use Windows Animation Manager and implement your own Custom Interpolator. This sample also uses Direct2D for rendering.
Windows Animation Manager Grid Layout Sample
Demonstrates how to use Windows Animation Manager, by animated a grid of images utilizing Direct2D
Windows Animation Manager Priority Comparison Sample
Demonstrates how to use Windows Animation Manager and implement your own Priority Comparison. This sample also uses Direct2D for rendering.
Windows Animation Manager Timer Driven Sample
Windows Media Player Skin in C++ with Remoting Sample
Demonstrates how to embed the Windows Media Player ActiveX control in a C++ application. Demonstrates how to use a skin in C++ to create the user interface. Demonstrates how to use remote mode.
Demonstrates basic embedding of the Windows Media Player control in a C++ application.
Demonstrates how to use the library functionality of the Windows Media Player 11 object model to create a user interface.
Windows Media Player C# Embedding Sample
Demonstrates how to embed the Windows Media Player ActiveX control in a C# program.
Schema and Attribute Reader Sample
Creates a tool that uses the Windows Media Player object model to retrieve and display information about metadata in the Windows Media Player library or a digital media file.
Windows Media Player VB.NET Embedding Sample
Demonstrates how to embed the Windows Media Player ActiveX control in a VB.NET program.
Windows Media Player Sample Digital Media Files and Installer
These are the sample digital media files for the Windows Media Player SDK samples. The file named loader.hta adds the required files to the user's Windows Media Player library.
Windows Media Player Skin Sample
A comprehensive skin sample that demonstrates multiple features.
Windows Media Player Skin Logging Sample
Demonstrates how to use a log file to assist in debugging a skin.
Windows Media Player Skin Playlist Element Sample
Demonstrates code that changes playlist attributes.
Windows Media Player Playlist Drawer Sample
Demonstrates how to create a drawer effect by hiding and showing parts of the skin.
Windows Media Player Tiny Skin Sample
Demonstrates the minimum coding to produce a skin that plays and stops.
Setting the ContentDistributor Attribute Sample
Demonstrates how to use the Windows Media Format SDK to set a value for the WM/ContentDistributor attribute.
Windows Media Player Online Store Sample Web Page
Designed to be used in an online store task pane. It demonstrates how to use the download manager to download digital media files to the user's computer.
Windows Media Player Closed Captioning Sample
Demonstrates a simple use of closed captioning in a Web page.
Windows Media Player Web Browser Detection Sample
Demonstrates how to detect which version of Windows Media Player is available on the end user's computer and which browser is in use.
Windows Media Player Web Embedding Sample with Error Handling
Demonstrates how to embed the Player in a web page and provides standard error-handling techniques.
Windows Media Player Markers Sample
Demonstrates a simple use of markers.
Windows Media Player Minimal Web Embedding Sample
Demonstrates the minimum HTML file needed to embed the Windows Media Player ActiveX control in a Web page.
Windows Media Player Multiple Audio Language Sample
Demonstrates how to use the multiple audio language feature of the Windows Media format with the Windows Media Player 9 Series or later ActiveX control.
Windows Media Player Script Commands Sample
Demonstrates a simple use of script commands in a Web page.
Windows Media Player URL Flipping Sample
Demonstrates how to do “URL flips” in a Web page. URLs are embedded into a media file and when encountered, will display the Web pages in Microsoft Internet Explorer by using the embedded URLs.
Portable Device API Sample
This application Demonstrates how to use the Portable Device APIs to work with portable devices. This includes discovering installed portable devices, enumerating device content, modifying content meta-data and transferring content to and from a device.
Portable Device API Services Sample
This application Demonstrates how to use the Portable Device APIs to work with portable device services. This includes discovering installed device services, enumerating content under device services, modifying content meta-data and invoking methods on services.
Program Manager for Samples
Windows SDK Team