d3d9.dllRegisterEnumTemplates
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXFile::RegisterEnumTemplates Method


Registers custom templates, given an ID3DXFileEnumObject enumeration object.

Syntax

HRESULT RegisterEnumTemplates(      

    ID3DXFileEnumObject *pEnum );

Parameters

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

Return Value

If the method succeeds, the return value is S_OK.

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

D3DXFERR_BADVALUEA variable is outside its expected range; typically returned when an object pointer is invalid.


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.

See Also

ID3DXFile::RegisterTemplates


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.