Add shell context [WIP]

This commit is contained in:
qianlifeng
2015-02-12 00:12:28 +08:00
parent 48f7c37d3b
commit 21e5f33487
10 changed files with 704 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
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);
}
}