IMFMediaEvent::GetValue Method

Retrieves the value associated with the event, if any. The value is retrieved as a PROPVARIANT structure. The actual data type and the meaning of the value depend on the event.

Syntax

public:
HRESULT GetValue(
         PROPVARIANT *pvValue
)  

Parameters

pvValue
Type: PROPVARIANTĀ *

[out]

Pointer to a PROPVARIANT structure. The method fills this structure with the data.

Return value

Type: HRESULTĀ 

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

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Remarks

Before calling this method, call PropVariantInit to initialize the PROPVARIANT structure. After the method returns, call PropVariantClear to free the memory that was allocated for the PROPVARIANT data.

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use mfuuid.lib.