DeviceManager/DeviceRepairAndOptimization/Utils/Win32ApiHelper.cs
2024-05-28 22:36:38 +08:00

22 lines
669 B
C#

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);
}
}