mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-29 03:20:46 +12:00
18 lines
522 B
C#
18 lines
522 B
C#
|
using System;
|
|||
|
using System.Runtime.InteropServices;
|
|||
|
|
|||
|
namespace SystemTrayMenu.NativeMethods
|
|||
|
{
|
|||
|
public static partial class NativeMethods
|
|||
|
{
|
|||
|
// The DestroyMenu function destroys the specified menu and frees any memory that the menu occupies.
|
|||
|
[DllImport("user32", SetLastError = true, CharSet = CharSet.Auto)]
|
|||
|
private static extern bool DestroyMenu(IntPtr hMenu);
|
|||
|
|
|||
|
public static bool User32DestroyMenu(IntPtr hMenu)
|
|||
|
{
|
|||
|
return DestroyMenu(hMenu);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|