CMINVOKECOMMANDINFO (Structures)
Last changed: -108.225.177.104

.
Summary
Contains information needed by IContextMenu::InvokeCommand to invoke a shortcut menu command.

C# Definition:

[StructLayout (LayoutKind.Sequential)]
struct CMINVOKECOMMANDINFO
{
     int      cbSize;    // sizeof(CMINVOKECOMMANDINFO)
     int      fMask;     // any combination of CMIC_MASK_*
     IntPtr       hwnd;      // might be NULL (indicating no owner window)
     string       lpVerb;    // either a string or MAKEINTRESOURCE(idOffset)
     string       lpParameters;  // might be NULL (indicating no parameter)
     string       lpDirectory;   // might be NULL (indicating no specific directory)
     int      nShow;     // one of SW_ values for ShowWindow() API
     int      dwHotKey;
     IntPtr       hIcon;
}

VB Definition:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>

Friend Structure CMINVOKECOMMANDINFO

    Public cbSize As UInt32
    Public fMask As CMIC
    Public hwnd As IntPtr
    Public verb As IntPtr
    <MarshalAs(UnmanagedType.LPStr)> Public parameters As String
    <MarshalAs(UnmanagedType.LPStr)> Public directory As String
    Public nShow As Integer
    Public dwHotKey As UInt32
    Public hIcon As IntPtr

End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation