outlook addin(2003 & 2007) - access outlook properties through C#
-
Thursday, July 26, 2012 9:54 AM
Hi,
My requirement is to create an addin for outlook 2003 & 2007. Through C# code, i want to access few outlook properties, like- to disable / enable few options in Tools -> options -> Security tab - > enable few options programmatically..
Can anyone help me with the code snippet to do the same? OR any API's to look into?
Thanks.
All Replies
-
Thursday, July 26, 2012 10:01 AMi do not think you will be able to change security through code invoked in outlook process - it would be a security hole. Some of those settings will be available through registry access usually under HKLM which requires local admin rights to change.
-
Thursday, July 26, 2012 10:07 AM
Thanks for the reply..
My requirement is to give the user an option to "Encrypt contents and attachements for outgoing mail". He/she is prompted with a message box with "yes" or "no".. on "yes" should be able to change the security settings by the addin.
So there is no other way through addin to achieve the same?
Thanks.
-
Thursday, July 26, 2012 11:00 AMif for single outgoing mail - sure. As a global setting in outlook? you would have to look where outlook stores this info, for example using process monitor. There is definietly nothing for this in standard OOM. And frankly, what's the point of such add-in - you can achieve this in almost the same numer of keystrokes using standard outlook settings.
-
Thursday, July 26, 2012 1:15 PMModerator
And if the registry settings are changed they wouldn't take effect until Outlook was closed and restarted. Outlook caches settings like that and for most doesn't update the cached settings when the registry values are changed."DamianD" <=?utf-8?B?RGFtaWFuRA==?=> wrote in message news:29e86a27-e36c-4911-9d4b-d377be56083b...if for single outgoing mail - sure. As a global setting in outlook? you would have to look where outlook stores this info, for example using process monitor. There is definietly nothing for this in standard OOM. And frankly, what's the point of such add-in - you can achieve this in almost the same numer of keystrokes using standard outlook settings.
Ken Slovak MVP - Outlook- Proposed As Answer by Leo_GaoModerator Monday, July 30, 2012 1:41 AM
- Marked As Answer by Leo_GaoModerator Wednesday, August 01, 2012 1:25 AM
-
Friday, January 04, 2013 6:26 PMis there a way to just read this info?
-
Monday, January 07, 2013 4:26 PMModeratorYou can always read the information from the registry, that is updated by Outlook when a change is made. Is that what you're asking?"niyack" <=?utf-8?B?bml5YWNr?=> wrote in message news:3c4ca2af-069b-4484-9a50-bfafb29f6a84...is there a way to just read this info?
Ken Slovak MVP - Outlook -
Friday, January 11, 2013 12:09 PMyes, where in the registry are these settings stored?
-
Friday, January 11, 2013 3:49 PMModeratorWhat settings? Be specific. Different settings are stored in different places, some are not accessible in the registry, some are."niyack" <=?utf-8?B?bml5YWNr?=> wrote in message news:703bebdd-908b-46ef-bee8-b79aead96a25...yes, where in the registry are these settings stored?
Ken Slovak MVP - Outlook -
Tuesday, January 22, 2013 2:20 PMI need to get the Font Settings.
-
Tuesday, January 22, 2013 8:07 PMModeratorI don't know where those are stored. Try running regmon and see what registry values if any are changed when you change the font settings using the Outlook UI."niyack" <=?utf-8?B?bml5YWNr?=> wrote in message news:3ef8a9fa-acf4-4ee2-88eb-309e7733dbfa...I need to get the Font Settings.
Ken Slovak MVP - Outlook

