DirectX SDK

DirectDrawSurface7.GetSurfaceDesc

The DirectDrawSurface7.GetSurfaceDesc method retrieves a description of the surface in its current condition.

object.GetSurfaceDesc(surface As DDSURFACEDESC2)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
surface
DDSURFACEDESC2 type to be filled with the current description of this 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