Windows API Reference

Media Foundation - Core Interfaces and Structures

Media Foundation Core APIs

This section provides detailed documentation for the core interfaces, structures, and enumerations that form the foundation of the Media Foundation framework. These components are essential for understanding and implementing media playback, encoding, and processing capabilities in Windows applications.

Key Concepts

Understanding the following concepts is crucial for working with Media Foundation:

Core Interfaces

Core Structures and Enumerations

Related Topics

Code Example Snippet

Here's a basic C++ snippet demonstrating how to query for an interface:


    Microsoft::WRL::ComPtr<IMFMediaSource> pSource;
    HRESULT hr = pUnknown->QueryInterface(__uuidof(IMFMediaSource), (void**)&pSource);
    if (SUCCEEDED(hr))
    {
        // Successfully obtained IMFMediaSource interface
    }