gdi32.dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace WindowsAPI
{
public class Gdi32
{
/// <summary>
/// gdi用于删除系统的gdi内存对象
/// </summary>
/// <param name="hObject"></param>
/// <returns></returns>
[DllImport("gdi32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DeleteObj(IntPtr hObj);
}
}