Revision 4d301e8e trunk/Pithos.ShellExtensions/ShellExtLib.cs
b/trunk/Pithos.ShellExtensions/ShellExtLib.cs | ||
---|---|---|
692 | 692 |
MIIM_BITMAP = 0x00000080, |
693 | 693 |
MIIM_FTYPE = 0x00000100 |
694 | 694 |
} |
695 |
|
|
695 |
[Flags] |
|
696 | 696 |
internal enum MFT : uint |
697 | 697 |
{ |
698 | 698 |
MFT_STRING = 0x00000000, |
... | ... | |
706 | 706 |
MFT_RIGHTJUSTIFY = 0x00004000 |
707 | 707 |
} |
708 | 708 |
|
709 |
[Flags] |
|
709 | 710 |
internal enum MFS : uint |
710 | 711 |
{ |
711 | 712 |
MFS_ENABLED = 0x00000000, |
... | ... | |
718 | 719 |
MFS_DEFAULT = 0x00001000 |
719 | 720 |
} |
720 | 721 |
|
722 |
[Flags] |
|
723 |
internal enum MF: uint |
|
724 |
{ |
|
725 |
MF_BYCOMMAND = 0x00000000, |
|
726 |
MF_ENABLED = 0x00000000, |
|
727 |
MF_DISABLED = 0x00000002, |
|
728 |
MF_BITMAP = 0x00000004, |
|
729 |
MF_CHECKED = 0x00000008, |
|
730 |
MF_BYPOSITION = 0x00000400, |
|
731 |
MF_SEPARATOR = 0x00000800 |
|
732 |
} |
|
733 |
|
|
721 | 734 |
#endregion |
722 | 735 |
|
723 | 736 |
|
... | ... | |
788 | 801 |
uint uItem, |
789 | 802 |
[MarshalAs(UnmanagedType.Bool)]bool fByPosition, |
790 | 803 |
ref MENUITEMINFO mii); |
804 |
|
|
805 |
[DllImport("user32", CharSet = CharSet.Unicode, SetLastError = true)] |
|
806 |
[return: MarshalAs(UnmanagedType.Bool)] |
|
807 |
public static extern bool InsertMenu( |
|
808 |
IntPtr hMenu, |
|
809 |
uint uPosition, |
|
810 |
MF uFlags, |
|
811 |
uint uIDNewItem, |
|
812 |
string lpNewItem); |
|
813 |
|
|
791 | 814 |
|
792 | 815 |
[DllImport("shell32", CharSet = CharSet.Unicode, SetLastError = true)] |
793 | 816 |
[return: MarshalAs(UnmanagedType.Bool)] |
Also available in: Unified diff