Share via


Programming in C++

Windows Media Encoder SDK banner art

This topic describes what you should know when programming in C++. Unless otherwise noted, the examples in this documentation are written in Microsoft Visual C++® 6.0.

When programming in C++, you must add the necessary header files to your project. The following header files are provided with the Windows Media Encoder SDK.

Header file Description
localagent.h Includes interfaces that enable remote administration of Windows Media Encoder applications.
mspropshell.h Includes interfaces that enable you to implement dialog boxes containing the predefined property pages.
wmdevctl.h Includes interfaces for controlling digital devices.
wmdrmprf.h Includes interfaces for protecting content with DRM.
wmencode.h Includes interfaces that configure and run Windows Media Encoder applications.
wmencvu.h Includes an interface that can be used to create and run a preview of a stream.
wmsencid.h Includes a complete set of DISPID definitions.

Instead of including the wmencode.h and mspropshell.h header files, you can import the corresponding type libraries to generate wrapper classes that simplify implementation of the related COM interfaces:

#import "WMEnc.exe"
#import "MSPShell.dll"

See Also