Skip to content

Latest commit

 

History

History
114 lines (87 loc) · 3.26 KB

nf-mfapi-mfcreatemediaevent.md

File metadata and controls

114 lines (87 loc) · 3.26 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfapi.MFCreateMediaEvent
MFCreateMediaEvent function (mfapi.h)
Creates a media event object.
64da695e-5f56-4f23-9a06-0b0c358e3cc3
MFCreateMediaEvent
MFCreateMediaEvent function [Media Foundation]
mf.mfcreatemediaevent
mfapi/MFCreateMediaEvent
mf\mfcreatemediaevent.htm
mf
64da695e-5f56-4f23-9a06-0b0c358e3cc3
12/05/2018
64da695e-5f56-4f23-9a06-0b0c358e3cc3, MFCreateMediaEvent, MFCreateMediaEvent function [Media Foundation], mf.mfcreatemediaevent, mfapi/MFCreateMediaEvent
mfapi.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfplat.lib
Mfplat.dll
Windows
19H1
MFCreateMediaEvent
mfapi/MFCreateMediaEvent
c++
APIRef
kbSyntax
DllExport
mfplat.dll
MFCreateMediaEvent

MFCreateMediaEvent function

-description

Creates a media event object.

-parameters

-param met

The event type. See IMFMediaEvent::GetType. For a list of event types, see Media Foundation Events.

-param guidExtendedType

The extended type. See IMFMediaEvent::GetExtendedType. If the event type does not have an extended type, use the value GUID_NULL.

-param hrStatus

The event status. See IMFMediaEvent::GetStatus

-param pvValue

The value associated with the event, if any. See IMFMediaEvent::GetValue. This parameter can be NULL.

-param ppEvent

Receives a pointer to the IMFMediaEvent interface. The caller must release the interface.

-returns

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

Return code Description
S_OK
The method succeeded.

-remarks

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP with Service Pack 2 (SP2) and later.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.

-see-also

IMFMediaEvent

Media Foundation Functions