2021-04-23 05:18:03 +12:00
|
|
|
|
// <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);
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-23 05:32:25 +12:00
|
|
|
|
[DllImport("gdi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
2021-04-23 05:18:03 +12:00
|
|
|
|
private static extern bool DeleteObject(IntPtr hObject);
|
|
|
|
|
}
|
|
|
|
|
}
|