DirectXFileCreate function

Creates an instance of a DirectXFile object. Deprecated.

Syntax

HRESULT STDAPICALLTYPE DirectXFileCreate(
   LPDIRECTXFILE *lplpDirectXFile
);

Parameters

lplpDirectXFile

Type: LPDIRECTXFILE*

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

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: DXFILEERR_BADALLOC, DXFILEERR_BADVALUE.

Remarks

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

Requirements

Requirement Value
Header
DXFile.h
Library
D3dxof.lib
DLL
D3dxof.dll

See also

X File Functions

CreateEnumObject

CreateSaveObject

RegisterTemplates