SystemTrayMenu/NativeDllImport/DeleteObject.cs

24 lines
668 B
C#

// <copyright file="DeleteObject.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace SystemTrayMenu.DllImports
{
using System;
using System.Runtime.InteropServices;
/// <summary>
/// wraps the methodcalls to native windows dll's.
/// </summary>
public static partial class NativeMethods
{
internal static bool Gdi32DeleteObject(IntPtr hObject)
{
return DeleteObject(hObject);
}
[DllImport("gdi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern bool DeleteObject(IntPtr hObject);
}
}