Add IMAPIContainer interface
authorThomas
Wed, 13 Mar 2019 12:05:27 +0100
changeset 2597a745e942a666
parent 2596 4a8849926eac
child 2598 9ec2fef7baea
Add IMAPIContainer interface
Mapi.cs
     1.1 --- a/Mapi.cs	Wed Mar 13 09:20:45 2019 +0100
     1.2 +++ b/Mapi.cs	Wed Mar 13 12:05:27 2019 +0100
     1.3 @@ -135,7 +135,35 @@
     1.4          #region Interfaces
     1.5  
     1.6          /// <summary>
     1.7 -        /// Performs operations on the messages and subfolders in a folder..
     1.8 +        /// Manages high-level operations on container objects such as address books, distribution lists, and folders.
     1.9 +        /// </summary>
    1.10 +        [
    1.11 +            ComImport,
    1.12 +            ComVisible(false),
    1.13 +            InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
    1.14 +            Guid(Mapi.MAPIInterfaceIds.IMAPIContainer)
    1.15 +        ]
    1.16 +        internal interface IMAPIContainer : IMAPIProp
    1.17 +        {
    1.18 +            [return: MarshalAs(UnmanagedType.I4)]
    1.19 +            [PreserveSig]
    1.20 +            int GetContentsTable();
    1.21 +            [return: MarshalAs(UnmanagedType.I4)]
    1.22 +            [PreserveSig]
    1.23 +            int GetHierarchyTable();
    1.24 +            [return: MarshalAs(UnmanagedType.I4)]
    1.25 +            [PreserveSig]
    1.26 +            int OpenEntry(uint cbEntryId, IntPtr entryId, ref Guid iid, uint flags, out IntPtr type, out IntPtr iUnk);
    1.27 +            [return: MarshalAs(UnmanagedType.I4)]
    1.28 +            [PreserveSig]
    1.29 +            int SetSearchCriteria();
    1.30 +            [return: MarshalAs(UnmanagedType.I4)]
    1.31 +            [PreserveSig]
    1.32 +            int GetSearchCriteria();
    1.33 +        }
    1.34 +
    1.35 +        /// <summary>
    1.36 +        /// Performs operations on the messages and subfolders in a folder.
    1.37          /// </summary>
    1.38          [
    1.39              ComImport,
    1.40 @@ -143,7 +171,7 @@
    1.41              InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
    1.42              Guid(Mapi.MAPIInterfaceIds.IMAPIFolder)
    1.43          ]
    1.44 -        internal interface IMAPIFolder
    1.45 +        internal interface IMAPIFolder : IMAPIContainer
    1.46          {
    1.47              /// <summary>
    1.48              /// Creates a new message.