IDirect3DRMFrame2::Save

Saves a Direct3DRMFrame2 object to the specified file.

HRESULT Save(
LPCSTR lpFilename,
D3DRMXOFFORMAT d3dFormat,
D3DRMSAVEOPTIONS d3dSaveFlags
);

Parameters

lpFilename

Address specifying the name of the created file. This file must have a .X file name extension.

d3dFormat

The D3DRMXOF_TEXT value from the D3DRMXOFFORMAT enumerated type.

d3dSaveFlags

Value of the D3DRMSAVEOPTIONS type describing the save options.

Return Values

Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.