IDirectDrawSurface2::GetSurfaceDesc

HRESULT GetSurfaceDesc(LPDDSURFACEDESC lpDDSurfaceDesc);

Retrieves a DDSURFACEDESC structure that describes the surface in its current condition.

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

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpDDSurfaceDesc

Address of a DDSURFACEDESC structure that will be filled with the current description of this surface.