ICONINFO
Contains information about an icon or a cursor.
using System;
using System.CodeDom.Compiler;
using Windows.Win32.Foundation;
using Windows.Win32.Graphics.Gdi;
namespace Windows.Win32.UI.WindowsAndMessaging
{
[GeneratedCode("Microsoft.Windows.CsWin32", "0.3.106+a37a0b4b70")]
internal struct ICONINFO : IDisposable
{
internal BOOL fIcon;
internal uint xHotspot;
internal uint yHotspot;
internal HBITMAP hbmMask;
internal HBITMAP hbmColor;
public void Dispose()
{
if (!hbmMask.IsNull) {
PInvokeCore.DeleteObject((HGDIOBJ)hbmMask.Value);
hbmMask = default(HBITMAP);
}
if (!hbmColor.IsNull) {
PInvokeCore.DeleteObject((HGDIOBJ)hbmColor.Value);
hbmColor = default(HBITMAP);
}
}
}
}