r_default(unique)
]
interface IAudioFrameNative : IInspectable
{
    // Provides IMFSample, etc. if present
    // Returns E_NOINTERFACE if not available
    HRESULT GetData(
        [in, annotation("_In_")] REFIID riid,
        [out, iid_is(riid), annotation("_COM_Outptr_")] LPVOID* ppv
        );
}

[
    object,
    uuid(26BA702B-314A-4620-AAF6-7A51AA58FA18),
    local,
    pointer_default(unique)
]
interface IVideoFrameNative : IInspectable
{
    // Provides IMFSample, etc. if present
    // Returns E_NOINTERFACE if not available
    HRESULT GetData(
        [in, annotation("_In_")] REFIID riid,
        [out, iid_is(riid), annotation("_COM_Outptr_")] LPVOID* ppv
        );

    // Provides IMFDXGIDeviceManager, etc. if present
    // Returns E_NOINTERFACE if not available
    HRESULT GetDevice(
        [in, annotation("_In_")] REFIID riid,
        [out, iid_is(riid), annotation("_COM_Outptr_")] LPVOID* ppv
        );
}

[
    object,
    uuid(7BD67CF8-BF7D-43E6-AF8D-B170EE0C0110),
    local,
    pointer_default(unique)
]
interface IAudioFrameNativeFactory : IInspectable
{
    HRESULT CreateFromMFSample(
        [in, annotation("_In_")] IMFSample* data,
        [in, annotation("_In_")] BOOL forceReadOnly, // only applies to the WinRT wrapper, not the wrapped MF buffer
        [in, annotation("_In_")] REFIID riid,
        [out, iid_is(riid), annotation("_COM_Outptr_")] LPVOID* ppv
        );
}

[
    object,
    uuid(69E3693E-8E1E-4E63-AC4C-7FDC21D9731D),
    local,
    pointer_default(unique)
]
interface IVideoFrameNativeFactory : IInspectable
{
    HRESULT CreateFromMFSample(
        [in, annotation("_In_")] IMFSample* data, // buffer must implement IMF2DBuffer2, potentially also IMFDXGIBuffer
        [in, annotation("_In_")] REFGUID subtype,
        [in, annotation("_In_")] UINT32 width,
        [in, annotation("_In_")] UINT32 height,
        [in, annotation("_In_")] BOOL forceReadOnly, // only applies to the WinRT wrapper, not the wrapped MF buffer
        [in, annotation("_In_opt_")] const MFVideoArea* minDisplayAperture, // MF_MT_MINIMUM_DISPLAY_APERTURE, null if full-frame
        [in, annotation("_In_opt_")] IMFDXGIDeviceManager* device, // if null, the buffer must not implement IMFDXGIBuffer
        [in, annotation("_In_")] REFIID riid,
        [out, iid_is(riid), annotation("_COM_Outptr_")] LPVOID* ppv
        );
}

cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */")
#pragma endregion
