ReleaseDC function user32

int ReleaseDC(
  1. int hWnd,
  2. int hDC
)

The ReleaseDC function releases a device context (DC), freeing it for use by other applications. The effect of the ReleaseDC function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs.

int ReleaseDC(
  HWND hWnd,
  HDC  hDC
);

Implementation

int ReleaseDC(int hWnd, int hDC) => _ReleaseDC(hWnd, hDC);