mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-10-01 01:27:33 +13:00
20 lines
614 B
C#
20 lines
614 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
|
|||
|
{
|
|||
|
[DllImport("gdi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
|||
|
[DefaultDllImportSearchPaths(DllImportSearchPath.UserDirectories)]
|
|||
|
private static extern int DeleteObject(IntPtr hIcon);
|
|||
|
}
|
|||
|
}
|