Example #1
0
 // Methods
 /// <summary>
 /// Initializes a new instance of the <see cref="ShellMenu"/> class.
 /// </summary>
 /// <param name="hMenu">The h menu.</param>
 /// <param name="parent">The parent.</param>
 /// <param name="defaultInsertIndex">Default index of the insert.</param>
 internal ShellMenu(IntPtr hMenu, ShellMenu parent, int defaultInsertIndex)
 {
     x4b1e528311f74227 = hMenu;
     xb6a159a84cb992d6 = parent;
     x1dbcf1591cc2cceb = parent.x1dbcf1591cc2cceb;
     xaf633da7d1e327ec = defaultInsertIndex;
 }
 // Methods
 internal GetMenuitemsEventArgs(ShellMenu menu, QueryContextMenuFlags flags, int startIndex, int maxMenuItemsAvailable)
 {
     this.xcbf78b15dd820156 = menu;
     this.xebf45bdcaa1fd1e1 = flags;
     this.xd4f974c06ffa392b = startIndex;
     this.xf9a8b85e42520bdc = maxMenuItemsAvailable;
 }
Example #3
0
 // Methods
 internal ShellMenuItem(ShellMenu owner, string caption, string verb, string helpstring, int id)
 {
     _owner   = owner;
     _caption = caption;
     if (caption == null)
     {
         _caption = string.Empty;
     }
     xeaf1b27180c0557b = id;
     _verb             = verb;
     if (verb == null)
     {
         _verb = string.Empty;
     }
     x33c74c46fd3c4244 = helpstring;
     if (helpstring == null)
     {
         helpstring = string.Empty;
     }
     xf1d951ff17c8de80 = false;
     x55b757cf868cbe52 = false;
     x07d4c1c683eae0fd = false;
     xf3a4c29d9fe0ddc7 = false;
     x364c1e3b189d47fe = true;
     xc5c612d33b31299f = false;
     x2fef7d841879a711 = true;
     x81c56a56f929ec31 = false;
     x3de314ab70bbd9bf = false;
     xe17ea6c34f806184 = false;
 }
Example #4
0
 // Methods
 internal void x2237804176f4caea(ShellMenu x071bde1041617fce, int xeaf1b27180c0557b)
 {
     for (int i = this.xa73e17ae29927ab0.Count - 1; i >= 0; i--)
     {
         ShellMenuItem item = this.xa73e17ae29927ab0[i] as ShellMenuItem;
         if ((item._owner.x4b1e528311f74227 == x071bde1041617fce.x4b1e528311f74227) && (item.xeaf1b27180c0557b == xeaf1b27180c0557b))
         {
             this.xa73e17ae29927ab0.RemoveAt(i);
         }
     }
 }
Example #5
0
 internal ShellMenuItem xc28600085ccd9908(ShellMenu xb6a159a84cb992d6, int x541a67b95acd3459)
 {
     for (int i = 0; i < this.xa73e17ae29927ab0.Count; i++)
     {
         ShellMenuItem item = this.xa73e17ae29927ab0[i] as ShellMenuItem;
         if ((item.xeaf1b27180c0557b == x541a67b95acd3459) && (item._owner.x4b1e528311f74227 == xb6a159a84cb992d6.x4b1e528311f74227))
         {
             return(item);
         }
     }
     return(null);
 }
Example #6
0
 private int xe6b590f4a33ffa7d(IntPtr x4b1e528311f74227, int x77673e48b8a47af3, int xe8d21c371f0934ef, int x25f7ac57a1bdea71, QueryContextMenuFlags x65e70cabb0b3496f)
 {
     try
     {
         xcbf78b15dd820156 = new ShellMenu(x4b1e528311f74227, xe8d21c371f0934ef, x77673e48b8a47af3);
         GetMenuitemsEventArgs e = new GetMenuitemsEventArgs(xcbf78b15dd820156, x65e70cabb0b3496f, x77673e48b8a47af3, (x25f7ac57a1bdea71 - xe8d21c371f0934ef) + 1);
         OnGetMenuItems(e);
         if ((xcbf78b15dd820156.x1dbcf1591cc2cceb.x6f7e5ea46c16afdf + e.xa60d4d9c2d90066f) > x25f7ac57a1bdea71)
         {
             throw new InvalidOperationException("Number of menu items is greater than allowed by host(Windows Explorer)");
         }
         return((xcbf78b15dd820156.x1dbcf1591cc2cceb.x6f7e5ea46c16afdf - xcbf78b15dd820156.x1dbcf1591cc2cceb.xf79f6f55056dea4c) + e.xa60d4d9c2d90066f);
     }
     catch
     {
         return(x443cc432acaadb1d.x15f59d42384ec1d4);
     }
 }