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. |
|
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.h |
Windows |
Ddraw.lib |
Ddraw.dll |
|
|
|
|
Windows |
19H1 |
Creates a GDI-compatible handle of a device context for this surface.
A pointer to a variable that receives the handle of the device context for this surface.
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
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.