IDirectXFileData::AddBinaryObject

Creates a binary object and adds it as a child object. Deprecated.

HRESULT AddBinaryObject(
  LPCSTR szName,
  CONST GUID * pguid,
  LPCSTR szMimeType,
  LPVOID pvData,
  DWORD cbSize
);

Parameters

szName
[in] Pointer to the name of the object. Specify NULL if the object does not need a name.
pguid
[in] Pointer to the GUID representing the object. Specify NULL if the object does not need a GUID.
szMimeType
[in] Pointer to the object's MIME type.
pvData
[in] Pointer to the object's data.
cbSize
[in] Size of the buffer pointed to by pvData, in bytes.

Return Values

If the method succeeds, the return value is DXFILE_OK. If the method fails, the return value can be one of the following values.

DXFILEERR_BADALLOC DXFILEERR_BADVALUE

Requirements

Header: Declared in Dxfile.h.

See Also

IDirectXFileBinary::GetMimeType