?/TD>
Microsoft DirectX 9.0

DirectXFileCreate Function


Creates an instance of a DirectXFile object.

Syntax

STDAPI DirectXFileCreate(      

    LPDIRECTXFILE *lplpDirectXFile );

Parameters

lplpDirectXFile
Address of a pointer to an IDirectXFile interface, representing the created DirectXFile object.

Return Value

If the function succeeds, the return value is DXFILE_OK.

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

DXFILEERR_BADALLOCMemory allocation failed.
DXFILEERR_BADVALUEParameter is invalid.


Remarks

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

Function Information

Headerdxfile.h
Import libraryd3dxof.lib
Minimum operating systems Windows 98

See Also

IDirectXFile::CreateEnumObject, IDirectXFile::CreateSaveObject, IDirectXFile::RegisterTemplates


© 2002 Microsoft Corporation. All rights reserved.