Redemption, creating Exchange folders, and making them invisible

M

Mike

I am currently creating a MAPIFolder by doing the following:

Outlook._Application olApp = OutlookApp;
Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");

Outlook.MAPIFolder mapifolderRoot =
(Outlook.MAPIFolder)olNs.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox).Parent;

_mapifolderArchive3 = mapifolderRoot.Folders.Add(_sCustomFolderName,
Outlook.OlDefaultFolders.olFolderInbox);

Since the OOM doesn't allow toggling of folder visibility, and I hear that
Redemption does, how can I
1) Use Redemption to create the folder and mark it invisible
2) Keep the code above and just use Redemption to hide it

Thanks for the assistance.
 
D

Dmitry Streblechenko

Redemption (or MAPI for that matter) cannot make a fodler invisible per-se,
but you can create teh folder where it will be invisible to an end user,
e.g. in the non-IPM tree.
Redemption lets you do that by providing access to teh RDOStore.RootFolder
(root folder invisible) and RDOStore.IPMRootFolder (which is the top visible
folder and is a child of the RootFolder).
Play with this in OutlookSpy - click ImsgStore, then "Open Root Container"
and go to the GetHierarchyTable tab.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
M

Mike

Thank you Dmitry. I am not at all familiar with Outlook Spy. Are there any
code samples availabe anywhere to do what you are stating? Thanks again.
 
D

Dmitry Streblechenko

OutlookSpy (unlike Redemption) does not require any code, it simply lets you
see how Outlook data is stored.
What exactly are you trying to do with the folder?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
M

Mike

Yes, I'm familiar with the fact that Outlook Spy doesn't require code, but I
meant are there any Redemption code samples that I could peruse to view how
to create the invisible folder you talk about.

The reason is, I am using a third party control to embed a form in the Web
View pane of Outlook, and to do that the form is associated with a folder. I
don't really need the folder to be visible to do that since there will be
toolbar buttons available for the navigation to the form, so I thought if it
was a simple Redemption or OOM call, I'd just make the folder invisible to
aviod confusion. Thanks again.
 
D

Dmitry Streblechenko

Exchange is a problem, it does not allow to add new folders on the root
level. PST is fine...

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top