|Microsoft DirectX 9.0|
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.
This method takes no parameters.
Possible return values include the following.
|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.|