2020-07-07 07:15:45 +12:00
|
|
|
|
// <copyright file="GetMenuDefaultItem.cs" company="PlaceholderCompany">
|
|
|
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
|
|
|
// </copyright>
|
2020-03-28 08:43:16 +13:00
|
|
|
|
|
2020-03-30 06:26:45 +13:00
|
|
|
|
namespace SystemTrayMenu.DllImports
|
2020-03-28 08:43:16 +13:00
|
|
|
|
{
|
2020-07-07 07:15:45 +12:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// wraps the methodcalls to native windows dll's.
|
|
|
|
|
/// </summary>
|
2020-03-28 08:43:16 +13:00
|
|
|
|
public static partial class NativeMethods
|
|
|
|
|
{
|
|
|
|
|
public static int User32GetMenuDefaultItem(IntPtr hMenu, bool fByPos, uint gmdiFlags)
|
|
|
|
|
{
|
|
|
|
|
return GetMenuDefaultItem(hMenu, fByPos, gmdiFlags);
|
|
|
|
|
}
|
2020-07-08 03:05:19 +12:00
|
|
|
|
|
|
|
|
|
// Determines the default menu item on the specified menu
|
|
|
|
|
[DllImport("user32", SetLastError = true, CharSet = CharSet.Unicode)]
|
|
|
|
|
private static extern int GetMenuDefaultItem(IntPtr hMenu, bool fByPos, uint gmdiFlags);
|
2020-03-28 08:43:16 +13:00
|
|
|
|
}
|
|
|
|
|
}
|