HDROP
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace Windows.Win32.UI.Shell
{
[DebuggerDisplay("{Value}")]
[GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal readonly struct HDROP : IEquatable<HDROP>
{
internal unsafe readonly void* Value;
internal static HDROP Null => default(HDROP);
internal unsafe bool IsNull => Value == null;
internal unsafe HDROP(void* value)
{
Value = value;
}
internal unsafe HDROP(IntPtr value)
{
this = new HDROP((void*)(long)value);
}
public unsafe static implicit operator void*(HDROP value)
{
return value.Value;
}
public unsafe static explicit operator HDROP(void* value)
{
return new HDROP(value);
}
public unsafe static bool operator ==(HDROP left, HDROP right)
{
return left.Value == right.Value;
}
public static bool operator !=(HDROP left, HDROP right)
{
return !(left == right);
}
public unsafe bool Equals(HDROP other)
{
return Value == other.Value;
}
public override bool Equals(object obj)
{
if (obj is HDROP) {
HDROP other = (HDROP)obj;
return Equals(other);
}
return false;
}
public unsafe override int GetHashCode()
{
return (int)Value;
}
public unsafe override string ToString()
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(2, 1);
defaultInterpolatedStringHandler.AppendLiteral("0x");
defaultInterpolatedStringHandler.AppendFormatted((UIntPtr)Value, "x");
return defaultInterpolatedStringHandler.ToStringAndClear();
}
public unsafe static implicit operator IntPtr(HDROP value)
{
return new IntPtr(value.Value);
}
public unsafe static explicit operator HDROP(IntPtr value)
{
return new HDROP(value.ToPointer());
}
public unsafe static explicit operator HDROP(UIntPtr value)
{
return new HDROP(value.ToPointer());
}
}
}