Microsoft DirectX 9.0

IDirectDraw::Compact

Not yet implemented.

The Compact method moves all of the pieces of surface memory on the video card to a contiguous block to make the largest chunk of free memory available. This call will fail if any operations are in progress. The application calling this method must have set its cooperative level to exclusive.

Syntax

HRESULT Compact();

Parameters

This method takes no parameters.

Return Values

Possible return values include the following.

Value Description
DD_OK The method succeeded.
DDERR_INVALIDOBJECT The object is invalid.
DDERR_INVALIDPARAMS One or more input parameters are invalid.
DDERR_SURFACEBUSY Access to this surface is being refused because the surface is already locked by another thread.
DDERR_NOEXCLUSIVEMODE Operation requires the application to have exclusive mode but the application does not have exclusive mode.

See Also