A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

folder protection properties





 
 
Thread Tools Display Modes
  #1  
Old July 25th 06, 11:44 AM posted to microsoft.public.outlook.program_forms
DavidH&P
external usenet poster
 
Posts: 16
Default folder protection properties

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  
Old July 25th 06, 04:01 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,793
Default folder protection properties

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  
Old August 22nd 06, 10:16 AM posted to microsoft.public.outlook.program_forms
DavidH&P
external usenet poster
 
Posts: 16
Default folder protection properties

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  
Old August 22nd 06, 04:23 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,793
Default folder protection properties

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  
Old August 22nd 06, 06:27 PM posted to microsoft.public.outlook.program_forms
DavidH&P
external usenet poster
 
Posts: 16
Default folder protection properties

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Remortgages - Electricity Suppliers - Credit Card - Web Advertising - Loans