DirectX SDK

DirectDrawSurface7.GetCaps

The DirectDrawSurface7.GetCaps method retrieves the capabilities of the surface. These capabilities are not necessarily related to the capabilities of the display device.

object.GetCaps(caps As DDSCAPS2)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
caps
DDSCAPS2 type to be filled with the hardware capabilities of the surface.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS