Creates an event queue.
HRESULT MFCreateEventQueue(
IMFMediaEventQueue **ppMediaEventQueue
)
ppMediaEventQueue
Type: IMFMediaEventQueue **
[out]
Receives a pointer to the IMFMediaEventQueue interface of the event queue. The caller must release the interface.
Type: HRESULT
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The function succeeded. |
Refer to Media Foundation return codes.
This function creates a helper object that you can use to implement the IMFMediaEventGenerator interface.
Header: Declared in mfapi.h.
Library: Use Mfplat.lib.