---
name: "GetDC"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetDC"
---

# GetDC(3w)

## NAME

**GetDC** (USER32.@)

## SYNOPSIS

HDC GetDC\
  (\
   HWND *hwnd*\
  )

## DESCRIPTION

Get a device context.

## RETURNS

**Success:** Handle to the device context

**Failure:** **NULL**.

## IMPLEMENTATION

Declared in **"user\_private.h"**.

Implemented in **"dlls/user32/painting.c"**.

Debug channel **"win"**.
