Skip to content

Latest commit

 

History

History
107 lines (84 loc) · 3.25 KB

nf-mfobjects-imfattributes-setunknown.md

File metadata and controls

107 lines (84 loc) · 3.25 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:mfobjects.IMFAttributes.SetUnknown
IMFAttributes::SetUnknown (mfobjects.h)
Associates an IUnknown pointer with a key.
IMFAttributes interface [Media Foundation]
SetUnknown method
IMFAttributes.SetUnknown
IMFAttributes::SetUnknown
SetUnknown
SetUnknown method [Media Foundation]
SetUnknown method [Media Foundation]
IMFAttributes interface
da0c3d59-07c4-4431-a137-8655ddbf6258
mf.imfattributes_setunknown
mfobjects/IMFAttributes::SetUnknown
mf\imfattributes_setunknown.htm
mf
da0c3d59-07c4-4431-a137-8655ddbf6258
12/05/2018
IMFAttributes interface [Media Foundation],SetUnknown method, IMFAttributes.SetUnknown, IMFAttributes::SetUnknown, SetUnknown, SetUnknown method [Media Foundation], SetUnknown method [Media Foundation],IMFAttributes interface, da0c3d59-07c4-4431-a137-8655ddbf6258, mf.imfattributes_setunknown, mfobjects/IMFAttributes::SetUnknown
mfobjects.h
Mfidl.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfuuid.lib
Windows
19H1
IMFAttributes::SetUnknown
mfobjects/IMFAttributes::SetUnknown
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFAttributes.SetUnknown

IMFAttributes::SetUnknown

-description

Associates an IUnknown pointer with a key.

-parameters

-param guidKey [in]

GUID that identifies the value to set. If this key already exists, the method overwrites the old value.

-param pUnknown [in]

IUnknown pointer to be associated with this key.

-returns

The method 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

To retrieve the IUnknown pointer, call IMFAttributes::GetUnknown.

It is not an error to call SetUnknown with pUnknown equal to NULL. However, GetUnknown will return MF_E_INVALIDTYPE.

This interface 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

Attributes and Properties

IMFAttributes