mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
31 lines
770 B
C#
31 lines
770 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace Wox.ShellContext
|
|
{
|
|
[ComImport(), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("000214e4-0000-0000-c000-000000000046")]
|
|
public interface IContextMenu
|
|
{
|
|
[PreserveSig()]
|
|
Int32 QueryContextMenu(
|
|
IntPtr hmenu,
|
|
uint iMenu,
|
|
uint idCmdFirst,
|
|
uint idCmdLast,
|
|
CMF uFlags);
|
|
|
|
[PreserveSig()]
|
|
Int32 InvokeCommand(
|
|
ref CMINVOKECOMMANDINFOEX info);
|
|
|
|
[PreserveSig()]
|
|
void GetCommandString(
|
|
int idcmd,
|
|
GetCommandStringInformations uflags,
|
|
int reserved,
|
|
StringBuilder commandstring,
|
|
int cch);
|
|
}
|
|
}
|