Share via


IPropertySetter::SaveToBlob

 
Microsoft DirectShow 9.0

IPropertySetter::SaveToBlob

The SaveToBlob method saves the property data to a persistence format.

Syntax

  HRESULT SaveToBlob(
    LONG *pcSize,
    BYTE **ppb
);

Parameters

pcSize

[out] Pointer to a variable that receives the size of the data, in bytes.

ppb

[out] Address of a pointer to an array of bytes that receives the data.

Return Value

Returns an HRESULT value. Possible values include the following:

Value Description
S_OK Success.
E_OUTOFMEMORY Insufficient memory.
E_POINTER NULL pointer argument.

Remarks

The method allocates memory for the byte array. The caller must free it, using the CoTaskMemFree function.

All property names and values are truncated to 40 characters in length. For this reason, XML is the preferred persistence format. See IXml2Dex Interface.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also