Skip to content

Latest commit

 

History

History
89 lines (65 loc) · 2.7 KB

nf-mfapi-mfgetattributeuint32.md

File metadata and controls

89 lines (65 loc) · 2.7 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.MFGetAttributeUINT32
MFGetAttributeUINT32 function (mfapi.h)
Returns a UINT32 value from an attribute store, or a default value if the attribute is not present.
MFGetAttributeUINT32
MFGetAttributeUINT32 function [Media Foundation]
b79f3b2c-6293-41b2-afe7-4a0b2c27b34f
mf.mfgetattributeuint32
mfapi/MFGetAttributeUINT32
mf\mfgetattributeuint32.htm
mf
b79f3b2c-6293-41b2-afe7-4a0b2c27b34f
12/05/2018
MFGetAttributeUINT32, MFGetAttributeUINT32 function [Media Foundation], b79f3b2c-6293-41b2-afe7-4a0b2c27b34f, mf.mfgetattributeuint32, mfapi/MFGetAttributeUINT32
mfapi.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Windows
19H1
MFGetAttributeUINT32
mfapi/MFGetAttributeUINT32
c++
APIRef
kbSyntax
HeaderDef
mfapi.h
MFGetAttributeUINT32

MFGetAttributeUINT32 function

-description

Returns a UINT32 value from an attribute store, or a default value if the attribute is not present.

-parameters

-param pAttributes [in]

Pointer to the IMFAttributes interface of the attribute store.

-param guidKey [in]

GUID that identifies which value to retrieve.

-param unDefault [in]

Default value to return if the attribute store does not contain the specified attribute.

-returns

Returns a UINT32 value.

-remarks

This helper function queries the attribute store for the UINT32 value specified by guidKey. If the value is not present or does not have type UINT32, the function returns unDefault.

This function is convenient because it never returns a failure code. However, if the attribute in question does not have a meaningful default value, you should call IMFAttributes::GetUINT32 and check for MF_E_ATTRIBUTENOTFOUND.

-see-also

Attributes and Properties

IMFAttributes::GetUINT32

Media Foundation Functions