From cbfc0e1ebeae9de078160abcfb06c300d653ee3c Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 22 Jul 2020 18:32:03 -0600 Subject: [PATCH] Added FILEDESCRIPTOR.nFileSize property to combine high/low fields --- PInvoke/Shell32/Clipboard.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/PInvoke/Shell32/Clipboard.cs b/PInvoke/Shell32/Clipboard.cs index 938102ae..a27e30d8 100644 --- a/PInvoke/Shell32/Clipboard.cs +++ b/PInvoke/Shell32/Clipboard.cs @@ -328,6 +328,17 @@ namespace Vanara.PInvoke /// [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)] public string cFileName; + + /// The file size, in bytes. + public ulong nFileSIze + { + get => Macros.MAKELONG64(nFileSizeLow, nFileSizeHigh); + set + { + nFileSizeHigh = (uint)(value >> 32); + nFileSizeLow = (uint)(value & 0xFFFFFFFF); + } + } } /// Defines the CF_FILEGROUPDESCRIPTOR clipboard format.