DeviceManager/DeviceRepairAndOptimization/Utils/Win32ApiHelper.cs

22 lines
669 B
C#
Raw Normal View History

2024-05-28 14:36:38 +00:00
using System;
using System.Runtime.InteropServices;
namespace DeviceRepairAndOptimization.Utils
{
public class Win32ApiHelper
{
[DllImport("user32")]
public static extern bool ReleaseCapture();
[DllImport("user32")]
public static extern bool PostMessage(int hWnd, int Mwg, int wParam, int lParam);
[DllImport("Gdi32.dll", EntryPoint = "DeleteObject")]
public static extern bool DeleteObject(IntPtr hObject);
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
public static extern IntPtr CreateRoundRectRgn(int left, int top, int right, int bottom, int width, int height);
}
}