[DllImport("kernel32.dll")]
public static extern IntPtr GlobalSize(IntPtr handle);
[DllImport("kernel32.dll")]
static extern IntPtr GlobalLock(IntPtr hMem);
[DllImport("user32.dll")]
static extern IntPtr GetClipboardData(uint uFormat);
[DllImport("user32.dll", SetLastError = true)]
static extern bool OpenClipboard(IntPtr hWndNewOwner);
[DllImport("user32.dll", SetLastError = true)]
static extern bool CloseClipboard();
const uint CF_TEXT = 1;
const uint CF_UNICODETEXT = 13;
const uint CF_OEMTEXT = 7;
/// <summary>
/// Gets the data on the clipboard in the format specified by
/// </
public static extern IntPtr GlobalSize(IntPtr handle);
[DllImport("kernel32.dll")]
static extern IntPtr GlobalLock(IntPtr hMem);
[DllImport("user32.dll")]
static extern IntPtr GetClipboardData(uint uFormat);
[DllImport("user32.dll", SetLastError = true)]
static extern bool OpenClipboard(IntPtr hWndNewOwner);
[DllImport("user32.dll", SetLastError = true)]
static extern bool CloseClipboard();
const uint CF_TEXT = 1;
const uint CF_UNICODETEXT = 13;
const uint CF_OEMTEXT = 7;
/// <summary>
/// Gets the data on the clipboard in the format specified by
/// </