IDirectDrawSurface2::GetCaps

HRESULT GetCaps(LPDDSCAPS lpDDSCaps);

Retrieves the capabilities of the surface. These capabilities are not necessarily related to the capabilities of the display device.

·Returns DD_OK if successful, or one of the following error values otherwise:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpDDSCaps

Address of a DDSCAPS structure that will be filled with the hardware capabilities of the surface.