Microsoft DirectX 8.1 (C++)

IDirectXFileData::AddDataReference

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

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 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.
  Import Library: Use D3dxof.lib.