IDirectXFileData::AddBinaryObject method

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

Syntax

HRESULT AddBinaryObject(
  [in]       LPCSTR szName,
  [in] const GUID   *pguid,
  [in]       LPCSTR szMimeType,
  [in]       LPVOID pvData,
  [in]       DWORD  cbSize
);

Parameters

szName [in]

Type: LPCSTR

Pointer to the name of the object. Specify NULL if the object does not need a name.

pguid [in]

Type: const GUID*

Pointer to the GUID representing the object. Specify NULL if the object does not need a GUID.

szMimeType [in]

Type: LPCSTR

Pointer to the object's MIME type.

pvData [in]

Type: LPVOID

Pointer to the object's data.

cbSize [in]

Type: DWORD

Size of the buffer pointed to by pvData, in bytes.

Return value

Type: HRESULT

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

Requirement Value
Header
DXFile.h
Library
D3dxof.lib

See also

IDirectXFileData

IDirectXFileBinary::GetMimeType