MFCreateEventQueue

Creates an event queue.

Syntax

HRESULT MFCreateEventQueue(
         IMFMediaEventQueue **ppMediaEventQueue
)  

Parameters

ppMediaEventQueue
Type: IMFMediaEventQueue **

[out]

Receives a pointer to the IMFMediaEventQueue interface of the event queue. The caller must release the interface.

Return value

Type: HRESULT 

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The function succeeded.

Refer to Media Foundation return codes.

Remarks

This function creates a helper object that you can use to implement the IMFMediaEventGenerator interface.

Requirements

Header: Declared in mfapi.h.

Library: Use Mfplat.lib.