Click or drag to resize

WindowsUtilitiesGetWindowDC Method

Retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. The ReleaseDC function must be called to release the device context

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static IntPtr GetWindowDC(
	IntPtr handle
)

Parameters

handle
Type: SystemIntPtr
A handle to the window with a device context that is to be retrieved. If this value is Zero, GetWindowDC retrieves the device context for the entire screen.

Return Value

Type: IntPtr
A handle to a device context for the specified window or IntPtr.Zero.
See Also