This project has moved and is read-only. For the latest updates, please go here.

Adding tasks and appointments folders to wrapped PST

Aug 7, 2013 at 4:16 PM

How can I add the Tasks and Appointment folders to the wrapped store provider?
I tried the following code but it added the message to Inbox folder.
lpMDB ->GetReceiveFolder("IPM.Task",NULL, &lcbEntryID, &lpEntryID, NULL);
lpMDB ->OpenEntry(lcbEntryID,lpEntryID,NULL,MAPI_BEST_ACCESS,&lulObjType,&lpUnk);
((LPMAPIFOLDER)lpUnk)->CreateMessage(NULL,MAPI_DEFERRED_ERRORS ,    &lpMessage);
Aug 7, 2013 at 8:25 PM
If you want a folder you need to create it. I don't know where you got the idea that GetReceiveFolder is the right way to locate a Task folder...