ID3DXFile::RegisterEnumTemplates method

Registers custom templates, given an ID3DXFileEnumObject enumeration object.

Syntax

HRESULT RegisterEnumTemplates(
  [in] ID3DXFileEnumObject *pEnum
);

Parameters

pEnum [in]

Type: ID3DXFileEnumObject*

Pointer to an ID3DXFileEnumObject enumeration object that contains templates.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK .

If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

Remarks

When this method is called, it copies templates stored with the ID3DXFileEnumObject, representing the file, to the local template store of the ID3DXFile object.

If an ID3DXFileEnumObject pointer is not available, call the RegisterTemplates method instead.

Requirements

Requirement Value
Header
D3DX9Xof.h
Library
D3dx9.lib

See also

ID3DXFile

RegisterTemplates