Microsoft DirectX 8.1 (C++)

IDirectXFileData::AddBinaryObject

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

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 globally unique identifier (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.
  Import Library: Use D3dxof.lib.

See Also

IDirectXFileBinary::GetMimeType