Platform SDK: DirectX

DirectDraw7.GetGDISurface

The DirectDraw7.GetGDISurface method retrieves the DirectDrawSurface object that currently represents the surface memory that the GDI is treating as the primary surface.

object.GetGDISurface() As DirectDrawSurface7

Parameters

object
Object expression that resolves to a DirectDraw7 object.

Return Values

If the method succeeds, it returns a DirectDrawSurface7.

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
DDERR_NOTFOUND

See Also

DirectDraw7.FlipToGDISurface