?/TD>
Microsoft DirectX 9.0

IDirectXFileData::AddDataReference Method


Creates and adds a data reference object as a child object.

Syntax

HRESULT AddDataReference(      

    LPCSTR szRef,     const GUID *pguidRef );

Parameters

szRef
[in] Pointer to the name of the referenced data object. This parameter can be NULL if pguidRef provides a reference to the globally unique identifier (GUID).
pguidRef
[in] Pointer to the GUID representing the data. This parameter can be NULL if szRef provides a reference to the name.

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.


Remarks

For this method to succeed, either the szRef or pguidRef parameter must be non-NULL.



© 2002 Microsoft Corporation. All rights reserved.