diff --git a/PInvoke/Shell32/Clipboard.cs b/PInvoke/Shell32/Clipboard.cs index b30e7323..4f41efac 100644 --- a/PInvoke/Shell32/Clipboard.cs +++ b/PInvoke/Shell32/Clipboard.cs @@ -1819,13 +1819,7 @@ namespace Vanara.PInvoke internal class ClipboardHDROPFormatter : IClipboardFormatter { - public object Read(IntPtr hGlobal) - { - return DROPFILES.DangerousGetFileList(hGlobal); - //SafeMoveableHGlobalHandle h = new(hGlobal, false); - //DROPFILES df = h.ToStructure(); - //return h.ToStringEnum(df.fWide ? CharSet.Unicode : CharSet.Ansi, Marshal.SizeOf(typeof(DROPFILES))).ToArray(); - } + public object Read(IntPtr hGlobal) => DROPFILES.DangerousGetFileList(hGlobal); public IntPtr Write(object value) => Write(value, Marshal.SystemDefaultCharSize != 1);