Microsoft DirectX 8.1 (C++)

DirectXFileCreate

Creates an instance of a DirectXFile object.

STDAPI DirectXFileCreate(
  LPDIRECTXFILE* lplpDirectXFile
);

Parameters

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

Return Values

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_BADALLOC
DXFILEERR_BADVALUE

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.

Requirements

  Header: Declared in Dxfile.h.
  Import Library: Use D3dxof.lib.

See Also

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