IDirectXFileData::AddDataReference

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

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 GUID.
pguidRef
[in] Pointer to the GUID representing the data. This parameter can be NULL if szRef provides a reference to the name.

Return Values

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

Remarks

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

Requirements

Header: Declared in Dxfile.h.