D3DXFileCreate
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXFileCreate Function


Creates an instance of an ID3DXFile object.

Syntax

STDAPI D3DXFileCreate(      

    ID3DXFile **lplpDirectXFile );

Parameters

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

Return Value

If the function succeeds, the return value is S_OK.

If the function fails, the return value can be one of the following values:

E_POINTERAn invalid pointer, usually NULL, was passed as a parameter.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


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.

Function Information

Headerd3dx9xof.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

ID3DXFile::CreateEnumObject, ID3DXFile::CreateSaveObject, ID3DXFile::RegisterEnumTemplates, 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.