Removing default folders

G

Guest

Hello,

I have created an ATL C++ Outlook Add-in for 2003 and 2007. Within this
plug-in I have created a custom folder (separate PST) much like the personal
folder that hosts a web page. By default calling AddStoreEx from the
namespace the folder is created; but also child folders “inboxâ€, “Deleted
Items†and “Search Folders†are also created. Is there anyway to delete the
child folders? I tried removing them but the functionality fails.

Thanks for your help.
 
D

Dmitry Streblechenko

If all you want to do is display a folder home paage, why not do that using
a folder in one of the defauls store's folders?
Why do you need to create a PST file if you have no intention of ever
storing any messages there?
As for deleting folders, you can delete the Inbox and "Deleted Items"
folders using CDO 1.21, Extended MAPI or Redemption (OOM won't let you
delete any of the default folders), but "Search Folders" will stay - it is
displayed by Outlook for all stores that support search folders
(STORE_SEARCH_OK bit is set in the PR_STORE_SUPPORT_MASK property).

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

Guest

Hi Dmitry,

Basically our customer wants his own pst file for further upgrades.

BTW - can we do this through Outlook Spy?
 
D

Dmitry Streblechenko

Delete a folder? Sure, select the root folder in that PST store, click
IMAPIFolder button on the OutlookSpy toolbar, go to the GetHierarchyTable
tab, select the folder you want to delete, click Delete.

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