?/TD>
Microsoft DirectX 9.0

IDirectXFileData::AddBinaryObject Method


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

Syntax

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 Value

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_BADALLOCMemory allocation failed.
DXFILEERR_BADVALUEParameter is invalid.


See Also

IDirectXFileBinary::GetMimeType


© 2002 Microsoft Corporation. All rights reserved.