## Return Values

The methods of the Microsoft® Direct3D® Retained Model (COM) interfaces can return the following values.

D3DRM_OK
  No error.
D3DRMERR_BADALLOC
  Out of memory.
D3DRMERR_BADDEVICE
  Device is not compatible with renderer.
D3DRMERR_BADFILE
  Data file is corrupt.
D3DRMERR_BADMAJORVERSION
  Bad DLL major version.
D3DRMERR_BADMINORVERSION
  Bad DLL minor version.
D3DRMERR_BADOBJECT
  Object expected in argument.
D3DRMERR_BADPMDATA
  The data in the .x file is corrupted. The conversion to a progressive mesh succeeded but produced an invalid progressive mesh in the .x file.
D3DRMERR_BADTYPE
  Bad argument type passed.
D3DRMERR_BADVALUE
  Bad argument value passed.
D3DRMERR_BOXNOTSET
  An attempt was made to access a bounding box (for example, with IDirect3DRMFrame2::GetBox) when no bounding box was set on the frame.
D3DRMERR_CONNECTIONLOST
  Data connection was lost during a load, clone, or duplicate.
D3DRMERR_FACEUSED
  Face already used in a mesh.
D3DRMERR_FILENOTFOUND
  File cannot be opened.
D3DRMERR_INVALIDDATA
  Method received or accessed data that is invalid.
D3DRMERR_INVALIDOBJECT
  Method received a pointer to an object that is invalid.
D3DRMERR_INVALIDPARAMS
  One of the parameters passed to the method is invalid.
D3DRMERR_NOTDONEYET
  Unimplemented.
D3DRMERR_NOTENOUGHDATA
  Not enough data has been loaded to perform the requested operation.
D3DRMERR_NOTFOUND
  Object not found in specified place.
D3DRMERR_PENDING
  Data required to supply the requested information has not finished loading.
D3DRMERR_REQUESTTOOLARGE
  Attempt was made to set a level of detail in a progressive mesh greater than the maximum available.
D3DRMERR_REQUESTTOOSMALL
  Attempt was made to set the minimum rendering detail of a progressive mesh smaller than the detail in the base mesh (the minimum for rendering).
D3DRMERR_UNABLETOEXECUTE
  Unable to carry out procedure.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.