Partager via


GweBypassCoredllThunk_t::ReleaseDC_I

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.

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: GweBypassCoredllThunk.hpp.

See Also

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

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.