Skip to content

Latest commit

 

History

History
97 lines (69 loc) · 2.5 KB

nf-ddraw-idirectdrawsurface7-getdc.md

File metadata and controls

97 lines (69 loc) · 2.5 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords f1_keywords dev_langs req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql topic_type api_type api_location api_name targetos req.typenames req.redist ms.custom
NF:ddraw.IDirectDrawSurface7.GetDC
IDirectDrawSurface7::GetDC (ddraw.h)
Creates a GDI-compatible handle of a device context for this surface.
GetDC
GetDC method [DirectDraw]
GetDC method [DirectDraw]
IDirectDrawSurface7 interface
IDirectDrawSurface7 interface [DirectDraw]
GetDC method
IDirectDrawSurface7.GetDC
IDirectDrawSurface7::GetDC
ddraw/IDirectDrawSurface7::GetDC
directdraw.idirectdrawsurface7_getdc
directdraw\idirectdrawsurface7_getdc.htm
directdraw
683be1bc-8232-42de-907f-1136ffdd524d
12/05/2018
GetDC, GetDC method [DirectDraw], GetDC method [DirectDraw],IDirectDrawSurface7 interface, IDirectDrawSurface7 interface [DirectDraw],GetDC method, IDirectDrawSurface7.GetDC, IDirectDrawSurface7::GetDC, ddraw/IDirectDrawSurface7::GetDC, directdraw.idirectdrawsurface7_getdc
ddraw/IDirectDrawSurface7.GetDC
c++
ddraw.h
Windows
Ddraw.lib
Ddraw.dll
APIRef
kbSyntax
COM
Ddraw.dll
IDirectDrawSurface7.GetDC
Windows
19H1

-description

Creates a GDI-compatible handle of a device context for this surface.

-parameters

-param unnamedParam1 [out]

A pointer to a variable that receives the handle of the device context for this surface.

-returns

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_DCALREADYCREATED
  • DDERR_GENERIC
  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS
  • DDERR_INVALIDSURFACETYPE
  • DDERR_SURFACELOST
  • DDERR_UNSUPPORTED
  • DDERR_WASSTILLDRAWING

-remarks

GetDC uses an internal version of the IDirectDrawSurface7::Lock method to lock the surface. The surface remains locked until the IDirectDrawSurface7::ReleaseDC method is called.

-see-also

IDirectDrawSurface7