D3DXFERR Return Values

Header: d3dx9xof.h

The methods used to work with DirectX .x files can return the following values in addition to the standard COM return values.

SymbolicCodeDescription
D3DXFERR_BADARRAYSIZEAn array exceeds the allowable size.
D3DXFERR_BADCACHEFILEA cache file could not be read.
D3DXFERR_BADDataReferenceTemplate member data could not be retrieved.
D3DXFERR_BADFILEA file read or write operation failed.
D3DXFERR_BADFILEFLOATSIZEFile is not the expected size.
D3DXFERR_BADFILETYPEFile has an invalid format.
D3DXFERR_BADFILEVERSIONFile has an invalid format version.
D3DXFERR_BADOBJECTData could not be read from or written to an object.
D3DXFERR_BADRESOURCEAn operation on a resource failed.
D3DXFERR_BADTYPEFile did not match known template types.
D3DXFERR_BADVALUEA variable is outside its expected range; typically returned when an object pointer is invalid.
D3DXFERR_FILENOTFOUNDA valid handle could not be found for the specified file.
D3DXFERR_NOMOREDATAPointer offset extended beyond the end of the buffer.
D3DXFERR_NOMOREOBJECTSNo more child objects are available.
D3DXFERR_NOTDONEYETData type did not match allowed types.
D3DXFERR_NOTFOUNDObject could not be found from the specified parameters.
D3DXFERR_PARSEERRORData stream could not be parsed.
D3DXFERR_RESOURCENOTFOUNDA valid handle could not be found for the specified resource.
18 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.