?/TD> |
Microsoft DirectX 9.0 |
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_BADALLOC Memory allocation failed. DXFILEERR_BADVALUE Parameter is invalid.
Remarks
For this method to succeed, either the szRef or pguidRef parameter must be non-NULL.