!!!! C# Signature: [DllImport("user32.dll")] static extern IntPtr SetClipboardData(uint uFormat, IntPtr hMem); !!! Code Sample string nullTerminatedStr = "helloworld" + "\0"; byte[] strBytes = Encoding.Unicode.GetBytes(nullTerminatedStr); IntPtr hglobal = Marshal.AllocHGlobal(strBytes.Length); Marshal.Copy(strBytes, 0, hglobal, strBytes.Length); OpenClipboard(IntPtr.Zero); EmptyClipboard(); SetClipboardData(CF_UNICODETEXT, hglobal); CloseClipboard(); Marshal.FreeHGlobal(hglobal);
Edit user32.SetClipboa...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.