IDirectXFile::CreateEnumObject

Creates an enumerator object. Deprecated.

HRESULT CreateEnumObject(
  LPVOID pvSource,
  DXFILELOADOPTIONS dwLoadOptions,
  LPDIRECTXFILEENUMOBJECT * ppEnumObj
);

Parameters

pvSource
[in] Pointer to data whose contents depend on the value of dwLoadOptions
dwLoadOptions
[in] Value that specifies the source of the data. This value can be one of the DXFILELOAD_xxx flags in DXFILE.
ppEnumObj
[out, retval] Address of a pointer to an IDirectXFileEnumObject interface, representing the created enumerator object.

Return Values

If the method succeeds, the return value is DXFILE_OK. If the method fails, the return value can be one of the following: DXFILEERR_BADALLOC, DXFILEERR_BADFILEFLOATSIZE, DXFILEERR_BADFILETYPE, DXFILEERR_BADFILEVERSION, DXFILEERR_BADRESOURCE, DXFILEERR_BADVALUE, DXFILEERR_FILENOTFOUND, DXFILEERR_RESOURCENOTFOUND, DXFILEERR_URLNOTFOUND.

Remarks

After using this method, use one of the IDirectXFileEnumObject methods to retrieve a data object.

Requirements

Header: Declared in Dxfile.h.