D3DXFileCreate

Creates an instance of an ID3DXFile object.

STDAPI D3DXFileCreate(
  ID3DXFile ** lplpDirectXFile
);

Parameters

lplpDirectXFile
Address of a pointer to an ID3DXFile interface, representing the created .x file object.

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the following: E_POINTER, E_OUTOFMEMORY.

Remarks

After using this function, use ID3DXFile::RegisterTemplates or ID3DXFile::RegisterEnumTemplates to register templates, ID3DXFile::CreateEnumObject to create an enumerator object, or ID3DXFile::CreateSaveObject to create a save object.

Requirements

Header: Declared in D3dx9xof.h.

See Also

ID3DXFile::CreateEnumObject, ID3DXFile::CreateSaveObject, ID3DXFile::RegisterEnumTemplates, ID3DXFile::RegisterTemplates