v1.2
This commit is contained in:
25
FSI.BT.Tools/Global/DllImport/DestroyMenu.cs
Normal file
25
FSI.BT.Tools/Global/DllImport/DestroyMenu.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// <copyright file="DestroyMenu.cs" company="PlaceholderCompany">
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace FSI.BT.Tools.Global.DllImports
|
||||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
/// <summary>
|
||||
/// wraps the methodcalls to native windows dll's.
|
||||
/// </summary>
|
||||
public static partial class NativeMethods
|
||||
{
|
||||
public static bool User32DestroyMenu(IntPtr hMenu)
|
||||
{
|
||||
return DestroyMenu(hMenu);
|
||||
}
|
||||
|
||||
// The DestroyMenu function destroys the specified menu and frees any memory that the menu occupies.
|
||||
[DllImport("user32", SetLastError = true, CharSet = CharSet.Unicode)]
|
||||
[DefaultDllImportSearchPaths(DllImportSearchPath.UserDirectories)]
|
||||
private static extern bool DestroyMenu(IntPtr hMenu);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user