d3d9.dllCreateEnumObject
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXFile::CreateEnumObject Method


Creates an enumerator object that will read a .x file.

Syntax

HRESULT CreateEnumObject(      

    LPCVOID pvSource,     D3DXF_FILELOADOPTIONS loadflags,     ID3DXFileEnumObject **ppEnumObj );

Parameters

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

Return Value

If the method succeeds, the return value is S_OK.

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

D3DXFERR_BADVALUEA variable is outside its expected range; typically returned when an object pointer is invalid.
D3DXFERR_PARSEERRORData stream could not be parsed.


Remarks

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

See Also

ID3DXFileEnumObject


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.