d3d9.dllAddBinaryObject
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirectXFileData::AddBinaryObject Method


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

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


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.