Previous | Next |
To develop an application using the Windows Media™ Format SDK, you must use Microsoft® Visual C++® version 6.0 or later. The only programming languages appropriate for development are C++ and C.
The minimum set of header file declarations is:
#include <windows.h>
#include <wtypes.h>
#include "wmsdk.h"
The first two are standard Microsoft® Windows® header files, and the last is included with this SDK. In addition to these and any other header files and libraries the project needs, the Wmvcore.lib and WMStub.lib libraries must be linked. For more information on WMStub.lib, see Acquiring Certificates and Libraries.
To use the Windows Media Format SDK, you compile your application with the multithreaded DLL C-runtime library. To accomplish this, make the following settings under 'Project\Settings':
Before calling any of the creation functions, COM should be initialized with a call to Coinitialize or CoinitializeEx. The free threading model can be used, although the apartment threading model can also be used though it imposes threading restrictions on the application. For more information on COM, Microsoft's Component Object Model, access the website: http:\\www.microsoft.com\com.
The following topics are covered in this section.
Topic | Description |
To Index Windows Media Files | Explains how to index a Windows Media video file to enable seeking through the file. |
To Write Windows Media Files | Explains how to read an uncompressed file as input and write a compressed Windows Media file as output. |
To Write Windows Media Script Files | Explains specific implementation details of the script format. |
To Edit Windows Media Header Files | Explains how to edit the metadata in a compressed Windows Media file, and save time by not decompressing the actual data. |
To Read Windows Media Files | Explains how to read compressed Windows Media files as input, and to produce uncompressed files as output. |
To Change a Stream Number Within a Profile | Explains how to change stream numbers within an already defined authoring profile. |
To Modify a Mutual Exclusion Object | Explains how to modify a Mutual Exclusion object associated with a profile. |
Implementing Callback Functions | Explains how callback functions are used by the SDK. |
See Also
Previous | Next |