Windows Dev Center

IMFDXGIBuffer::SetUnknown method

Stores an arbitrary IUnknown pointer in the media buffer object.

Syntax


HRESULT SetUnknown(
  [in] REFIID   guid,
  [in] IUnknown *pUnkData
);

Parameters

guid [in]

The identifier for the IUnknown pointer. This identifier is used as a key to retrieve the value. It can be any GUID value.

pUnkData [in]

A pointer to the IUnknown interface. Set this parameter to NULL to clear a pointer that was previously set.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

ERROR_OBJECT_ALREADY_EXISTS

An item already exists with this key.

 

Remarks

To retrieve the pointer from the object, call IMFDXGIBuffer::GetUnknown.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfobjects.h (include Mfidl.h)

See also

IMFDXGIBuffer
IMFDXGIBuffer::GetUnknown

 

 

Community Additions

ADD
Show:
© 2015 Microsoft