|Microsoft DirectX 9.0|
The GetGDISurface method returns the DirectDrawSurface object that currently represents the surface memory that GDI treats as the primary surface.
HRESULT GetGDISurface( LPDIRECTDRAWSURFACE FAR *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.
|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.|