Windows.Win32.Graphics.Gdi.HdcHandle
Used when you must keep a handle to an HDC in a field. Avoid keeping HDC handles in fields
when possible.
namespace Windows.Win32.Graphics.Gdi
{
internal sealed class HdcHandle : IDisposable, IHandle<HDC>
{
public HDC Handle { get; }
public HdcHandle(CreateDcScope hdc);
public static implicit operator HDC(ref HdcHandle handle);
public static implicit operator IntPtr(ref HdcHandle handle);
public void Dispose();
}
}