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.151+58e949951d.RR")]
internal struct ICONINFO : IDisposable
{
internal BOOL fIcon;
internal uint xHotspot;
internal uint yHotspot;
internal HBITMAP hbmMask;
internal HBITMAP hbmColor;
public unsafe void Dispose()
{
if (!hbmMask.IsNull) {
PInvokeCore.DeleteObject((HGDIOBJ)hbmMask.Value);
hbmMask = default(HBITMAP);
}
if (!hbmColor.IsNull) {
PInvokeCore.DeleteObject((HGDIOBJ)hbmColor.Value);
hbmColor = default(HBITMAP);
}
}
}
}