IDirectDrawSurface::GetSurfaceDesc

HRESULT GetSurfaceDesc(LPDDSURFACEDESC lpDDSurfaceDesc);

Returns 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 to be filled in with the current description of this surface.