Adds a data reference as a child of this ID3DXFileSaveData file data node. The data reference points to a file data object.
HRESULT AddDataReference( LPCSTR szName, CONST GUID * pId );
If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DXFERR_BADOBJECT, D3DXFERR_BADVALUE, E_OUTOFMEMORY.
The file data object being referenced must have either a name or a GUID. The file data object must also derive from a different parent ID3DXFileSaveData object.
Header: Declared in D3dx9xof.h.