コード例 #1
0
        private static byte[] GetClipboardDataInternal(uint magic, int maxSize = int.MaxValue)
        {
            var buffer = PlatformUtils.GetClipboardData(maxSize);

            if (buffer == null || BitConverter.ToUInt32(buffer, 0) != magic)
            {
                return(null);
            }

            return(buffer);
        }