Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

CMINVOKECOMMANDINFO (Structures)
 
.
Summary
TODO - a short description
Summary
Contains information needed by IContextMenu::InvokeCommand to invoke a shortcut menu command.

C# Definition:

    [StructLayout (LayoutKind.Sequential)]
    public struct CMINVOKECOMMANDINFOEX {
        public int            cbSize;        // Marshal.SizeOf(CMINVOKECOMMANDINFO)
        public int            fMask;         // any combination of CMIC_MASK_*
        public IntPtr        hwnd;          // might be NULL (indicating no owner window)
        public string        lpVerb;        // either a string or MAKEINTRESOURCE(idOffset)
        public string        lpParameters;      // might be NULL (indicating no parameter)
        public string        lpDirectory;       // might be NULL (indicating no specific directory)
        public int            nShow;         // one of SW_ values for ShowWindow() API
        public int            dwHotKey;        // Optional hot key to assign to any application activated by the command. If the fMask member does not specify CMIC_MASK_HOTKEY, this member is ignored.
        public IntPtr        hIcon;            // Icon to use for any application activated by the command. If the fMask member does not specify CMIC_MASK_ICON, this member is ignored.
[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;
}

        public string        lpTitle;        // ASCII title.

        [MarshalAs(UnmanagedType.LPWStr)]
        public string        lpVerbW;                // Unicode verb, for those commands that can use it.

        [MarshalAs(UnmanagedType.LPWStr)]
        public string        lpParametersW;        // Unicode parameters, for those commands that can use it.

        [MarshalAs(UnmanagedType.LPWStr)]
        public string        lpDirectoryW;        // Unicode directory, for those commands that can use it.

        [MarshalAs(UnmanagedType.LPWStr)]
        public string        lpTitleW;            // Unicode title.

        public POINT        ptInvoke;                // Point where the command is invoked. This member is not valid prior to Microsoft Internet Explorer 4.0.
    }

VB Definition:

Structure CMINVOKECOMMANDINFOEX
   Public TODO
End Structure

<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
Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions