Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Stores an arbitrary IUnknown pointer in the media buffer object.
Syntax
HRESULT SetUnknown(
[in] REFIID guid,
[in] IUnknown *pUnkData
);
Parameters
[in] guid
The identifier for the IUnknown pointer. This identifier is used as a key to retrieve the value. It can be any GUID value.
[in] pUnkData
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 code | Description |
---|---|
|
Success. |
|
An item already exists with this key. |
Remarks
To retrieve the pointer from the object, call IMFDXGIBuffer::GetUnknown.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfobjects.h (include Mfidl.h) |