|
Imports ExpTreeLib.ShellDll.ShellAPI
Imports System.Runtime.InteropServices
Namespace ShellDll
<ComImport(), _
InterfaceType(ComInterfaceType.InterfaceIsIUnknown), _
GuidAttribute("bcfce0a0-ec17-11d0-8d10-00a0c90f2719")> _
Public Interface IContextMenu3
' IContextMenu methods
<PreserveSig()> _
Function QueryContextMenu(ByVal hmenu As IntPtr, _
ByVal iMenu As Integer, _
ByVal idCmdFirst As Integer, _
ByVal idCmdLast As Integer, _
ByVal uFlags As Integer) As Integer
<PreserveSig()> _
Function InvokeCommand(ByRef pici As CMInvokeCommandInfoEx) As Integer
<PreserveSig()> _
Function GetCommandString(ByVal idcmd As Integer, _
ByVal uflags As Integer, _
ByVal reserved As Integer, _
<MarshalAs(UnmanagedType.LPArray)> ByVal commandstring As Byte(), _
ByVal cch As Integer) As Integer
'IContextMenu2 method
<PreserveSig()> _
Function HandleMenuMsg( _
ByVal uMsg As Integer, _
ByVal wParam As IntPtr, _
ByVal lParam As IntPtr _
) As Integer
'IContextMenu3 method
<PreserveSig()> _
Function HandleMenuMsg2( _
ByVal uMsg As Integer, _
ByVal wParam As IntPtr, _
ByVal lParam As IntPtr, _
ByVal plResult As IntPtr _
) As Integer
End Interface
End Namespace
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After 30+ years working in the IT field, mostly managing SysAdmins, I have retired. One of my hobbies returns me to programming, basically just to keep my hand in.