<PackageReference Include="System.Drawing.Common" Version="10.0.4" />

Windows.Win32.Foundation.BSTR

namespace Windows.Win32.Foundation { internal readonly struct BSTR : IDisposable, IEquatable<BSTR> { public bool IsNull { get; } public bool IsNullOrEmpty { get; } public BSTR(string value); public void Dispose(); public string ToStringAndFree(); public string ToNullableStringAndFree(); public unsafe static implicit operator char*(BSTR value); public unsafe static explicit operator BSTR(char* value); public static bool operator ==(BSTR left, BSTR right); public static bool operator !=(BSTR left, BSTR right); public bool Equals(BSTR other); public static implicit operator IntPtr(BSTR value); public static explicit operator BSTR(IntPtr value); public static explicit operator BSTR(UIntPtr value); public static implicit operator ReadOnlySpan<char>(BSTR bstr); } }