Skip to content

Latest commit

 

History

History
87 lines (54 loc) · 2.02 KB

id3dxfilesavedata--adddatareference.md

File metadata and controls

87 lines (54 loc) · 2.02 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
Adds a data reference as a child of this ID3DXFileSaveData file data node. The data reference points to a file data object.
75bfe91e-15ea-41f3-b1f7-071fb7f0093f
ID3DXFileSaveData::AddDataReference method (D3DX9Xof.h)
reference
05/31/2018
APIRef
kbSyntax
ID3DXFileSaveData.AddDataReference
COM
D3dx9.lib
D3dx9.dll

ID3DXFileSaveData::AddDataReference method

Adds a data reference as a child of this ID3DXFileSaveData file data node. The data reference points to a file data object.

Syntax

HRESULT AddDataReference(
  [in]       LPCSTR szName,
  [in] const GUID   *pId
);

Parameters

szName [in]

Type: LPCSTR

Pointer to the name of the data object to add by reference. Specify NULL if the data object does not have a name.

pId [in]

Type: const GUID*

Pointer to a GUID representing the data object to add by reference. If NULL, a reference will be added that points to the data object with the name given by szName.

Return value

Type: HRESULT

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.

Remarks

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.

Requirements

Requirement Value
Header
D3DX9Xof.h
Library
D3dx9.lib

See also

ID3DXFileSaveData