ID3DXFile::RegisterEnumTemplates

Registers custom templates, given an ID3DXFileEnumObject enumeration object.

HRESULT RegisterEnumTemplates(
  ID3DXFileEnumObject * pEnum
);

Parameters

pEnum
[in] Pointer to an ID3DXFileEnumObject enumeration object that contains templates.

Return Values

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 ID3DXFile::RegisterTemplates method instead.

Requirements

Header: Declared in D3dx9xof.h.

See Also

ID3DXFile::RegisterTemplates