initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SHARP
|
||||
{
|
||||
internal class WinAPI
|
||||
{
|
||||
[DllImport("user32.dll")]
|
||||
internal static extern IntPtr GetClipboardData(uint uFormat);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern bool IsClipboardFormatAvailable(uint format);
|
||||
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
internal static extern bool OpenClipboard(IntPtr hWndNewOwner);
|
||||
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
internal static extern bool CloseClipboard();
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
internal static extern IntPtr GlobalLock(IntPtr hMem);
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
internal static extern bool GlobalUnlock(IntPtr hMem);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user