Microsoft DirectX 9.0

IDirectDraw::GetGDISurface

The GetGDISurface method returns the DirectDrawSurface object that currently represents the surface memory that GDI treats as the primary surface.

Syntax

HRESULT GetGDISurface(
  LPDIRECTDRAWSURFACE FAR *lplpGDIDDSSurface
  );

Parameters

lplpGDIDDSSurface

Points to a DirectDrawSurface pointer that will be made to point at the DirectDrawSurface object which is currently controlling GDI's primary surface memory.

Return Values

Value Description
DD_OK The method succeeded.
DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
DDERR_INVALIDPARAMS One or more of the input parameters is invalid.
DDERR_NOTFOUND Requested item was not found.

See Also