Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
This topic describes the headers and libraries needed to build DirectShow applications.
The latest DirectShow headers and libraries are available in the Windows SDK.
All DirectShow applications use the header file shown in the following table.
Header File | Required For |
---|---|
Dshow.h | All DirectShow applications. |
Some DirectShow interfaces require additional header files. These requirements are noted in the interface reference.
DirectShow uses the static library files shown in the following table.
Library File | Description |
---|---|
Strmiids.lib | Exports class identifiers (CLSIDs) and interface identifiers (IIDs). |
Quartz.lib | Exports the AMGetErrorText function. If you do not call this function, this library is not required. |
Use the same .lib files for debug and release builds.
The Windows SDK provides a set of C++ classes that are recommended if you are writing a custom DirectShow filter. These classes are provided as sample code, which you can compile to a static library. For more information, see DirectShow Base Classes.
DirectShow applications written for Windows XP with Service Pack 2 (SP2) and later do not need to redistribute any DirectShow DLLs.
For Windows XP with Service Pack 1 (SP1) and earlier, redistributable DirectShow DLLs are available from the Microsoft DirectX SDK. The latest version of these DLLs is version 9.0c. No further development of these redistributable DLLs is planned. Windows XP with Service Pack 2 (SP2) contains the version 9.0c DLLs.
The redstributable packages contain the following DLLs:
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayTraining
Module
Choose the best UI framework for a native Windows development project - Training
Windows developers have various options for creating applications that run on Windows. This module introduces the native Windows UI frameworks that are available for Windows development. It also provides guidance on how to choose the best framework for your application.