Share via


GweBypassCoredllThunk_t::ReleaseDC_I (Windows Embedded CE 6.0)

1/6/2010

This method releases a device context, freeing it for use by other applications. The effect of GweBypassCoredllThunk_t::ReleaseDC_I depends on the type of device context.

Syntax

static int WINAPI ReleaseDC_I(
  HWND hwndThis,
  HDC hdc
);

Parameters

  • hwndThis
    [in] Handle to the window whose device context is to be released.
  • hdc
    [in] Handle to the device context to be released.

Return Value

The return value specifies whether the device context is released. 1 indicates that the device context is released. Zero indicates that the device context is not released.

Remarks

This method is an internal version of the ReleaseDC function.

The application must call the GweBypassCoredllThunk_t::ReleaseDC_I method for each call to the GweBypassCoredllThunk_t::GetWindowDC_I method and for each call to the GweBypassCoredllThunk_t::GetDC_I method that retrieves a common device context.

An application cannot use the GweBypassCoredllThunk_t::ReleaseDC_I function to release a device context that was created by calling the Gdi::CreateDCW_I method; instead, the application must use the Gdi::DeleteDC_I method.

Requirements

Header gwebypasscoredllthunk.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

GweBypassCoredllThunk_t
ReleaseDC
Gdi::CreateDCW_I
Gdi::DeleteDC_I
GweBypassCoredllThunk_t::GetDC_I
GweBypassCoredllThunk_t::GetWindowDC_I