![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: folder, properties, protection |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
HI,
I'm using Outlook2007 beta2 and VSTOv3. Like on this example : http://msdn2.microsoft.com/en-us/library/ms268879.aspx I have programmaticaly created a new folder in Outlook but I would like to protect this folder. I don't want the user to delete it. I see that the inbox folder is protected, How can I do that on my folder ? Is there a property for that ? Thanks, David |
| Ads |
|
#2
|
|||
|
|||
|
Only intrinsic folders such as Inbox can't be deleted and you can't set that
property from code. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "DavidH&P" wrote in message ... HI, I'm using Outlook2007 beta2 and VSTOv3. Like on this example : http://msdn2.microsoft.com/en-us/library/ms268879.aspx I have programmaticaly created a new folder in Outlook but I would like to protect this folder. I don't want the user to delete it. I see that the inbox folder is protected, How can I do that on my folder ? Is there a property for that ? Thanks, David |
|
#3
|
|||
|
|||
|
thanks for your answer,
How can I know that a folder is an intrinsic one (programmaticaly) ? and can I change the folder's icon by a personal icon ? thanks, David "Ken Slovak - [MVP - Outlook]" wrote: Only intrinsic folders such as Inbox can't be deleted and you can't set that property from code. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "DavidH&P" wrote in message ... HI, I'm using Outlook2007 beta2 and VSTOv3. Like on this example : http://msdn2.microsoft.com/en-us/library/ms268879.aspx I have programmaticaly created a new folder in Outlook but I would like to protect this folder. I don't want the user to delete it. I see that the inbox folder is protected, How can I do that on my folder ? Is there a property for that ? Thanks, David |
|
#4
|
|||
|
|||
|
You cannot change the folder icon.
You can get all the intrinsic folders using GetDefaultFolder and store the EntryID's in a table and compare any folder to that to see if there are any matches. Using the Outlook object model you'd always get the long-term EntryID. Using a lower level API you can read the Inbox folder and get the ID's of default folders from properties such as PR_IPM_APPOINTMENT_ENTRYID (Calendar), PR_IPM_CONTACT_ENTRYID (Contacts), PR_IPM_DRAFTS_ENTRYID (Drafts), etc. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "DavidH&P" wrote in message ... thanks for your answer, How can I know that a folder is an intrinsic one (programmaticaly) ? and can I change the folder's icon by a personal icon ? thanks, David |
|
#5
|
|||
|
|||
|
Thanks for you help,
I will do like that... "Ken Slovak - [MVP - Outlook]" wrote: You cannot change the folder icon. You can get all the intrinsic folders using GetDefaultFolder and store the EntryID's in a table and compare any folder to that to see if there are any matches. Using the Outlook object model you'd always get the long-term EntryID. Using a lower level API you can read the Inbox folder and get the ID's of default folders from properties such as PR_IPM_APPOINTMENT_ENTRYID (Calendar), PR_IPM_CONTACT_ENTRYID (Contacts), PR_IPM_DRAFTS_ENTRYID (Drafts), etc. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "DavidH&P" wrote in message ... thanks for your answer, How can I know that a folder is an intrinsic one (programmaticaly) ? and can I change the folder's icon by a personal icon ? thanks, David |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting Folder Aging Properties Prob | Merlin | Outlook and VBA | 0 | June 22nd 06 12:24 PM |
| How do I overcome write protection? | Gussie | Outlook - Using Contacts | 1 | May 25th 06 02:23 PM |
| Properties of contacts folder. Default changes. | Sue Mosher [MVP-Outlook] | Outlook - Installation | 0 | January 30th 06 05:26 PM |
| Properties of contacts folder. Default changes. | sulmar | Outlook - Installation | 0 | January 7th 06 11:40 PM |
| Properties of contacts folder. Default changes. | sulmar | Outlook - Installation | 0 | January 7th 06 11:38 PM |