protected override bool ReleaseHandle() { return(SafeWindowDCHandle.ReleaseDC(this.hWnd, this.handle)); }
public static SafeWindowDCHandle FromDesktop() { IntPtr desktopWindow = User32.GetDesktopWindow(); return(new SafeWindowDCHandle(desktopWindow, SafeWindowDCHandle.GetWindowDC(desktopWindow))); }