Files
hannibalstealer/WinAPI.cs
T

27 lines
768 B
C#
Raw Normal View History

2026-08-27 11:22:57 -06:00
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);
}
}