OUT-366: Added EnumPidTagSecurityFlags to MapiPropertyValue class OUT-366. S/MIME
authornikolaj
Tue, 13 Feb 2018 10:47:08 +0100
branchOUT-366. S/MIME
changeset 200179b037aa8337
parent 2000 a8205fd43492
child 2002 c7124d30cf44
OUT-366: Added EnumPidTagSecurityFlags to MapiPropertyValue class
MAPIPropertyValue.cs
     1.1 --- a/MAPIPropertyValue.cs	Mon Feb 12 17:41:54 2018 +0100
     1.2 +++ b/MAPIPropertyValue.cs	Tue Feb 13 10:47:08 2018 +0100
     1.3 @@ -94,6 +94,39 @@
     1.4              mfUntrusted = 0x00008000
     1.5          }
     1.6  
     1.7 +
     1.8 +
     1.9 +        /// <summary>
    1.10 +        /// Enumeration of PrSecurityFlags that shows mail S/Mime encryption setting
    1.11 +        /// https://support.microsoft.com/en-us/help/2636465/how-to-sign-or-encrypt-mail-messages-programmatically?wa=wsignin1.0
    1.12 +        /// </summary>
    1.13 +        [Flags]
    1.14 +        public enum EnumPidTagSecurityFlags
    1.15 +        {
    1.16 +            /// <summary>
    1.17 +            /// 0 - not encrypted and not signed
    1.18 +            /// </summary>
    1.19 +            notEncryptedAndNotSigned = 0x00000000,
    1.20 +
    1.21 +            /// <summary>
    1.22 +            /// 1 - only encrypted
    1.23 +            /// </summary>
    1.24 +            onlyEncrypted = 0x00000001,
    1.25 +
    1.26 +            /// <summary>
    1.27 +            /// 2 - only signed. 
    1.28 +            /// </summary>
    1.29 +            onlySigned = 0x00000002,
    1.30 +
    1.31 +
    1.32 +            /// <summary>
    1.33 +            /// 3 - encrypted and signed 
    1.34 +            /// </summary>
    1.35 +            encryptedAndSigned = 0x00000003,
    1.36 +        }
    1.37 +
    1.38 +
    1.39 +
    1.40          /// <summary>
    1.41          /// Value for PidTagAttachTag which specifies the attachment is TNEF.
    1.42          /// </summary>