IDirectDraw7::GetGDISurface method (ddraw.h)
Retrieves the DirectDrawSurface object that currently represents the surface memory that GDI is treating as the primary surface.
Syntax
HRESULT GetGDISurface(
[out] LPDIRECTDRAWSURFACE7 *unnamedParam1
);
Parameters
[out] unnamedParam1
Address of a variable to be filled with a pointer to the IDirectDrawSurface7 interface for the surface that currently controls the GDI's primary surface memory.
Return value
If the method succeeds, the return value is DD_OK.
If it fails, the method can return one of the following error values:
- DDERR_INVALIDOBJECT
- DDERR_INVALIDPARAMS
- DDERR_NOTFOUND
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |
Library | Ddraw.lib |
DLL | Ddraw.dll |