Creating folder with determined type

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I work on application which imports/exports contacts from message store.
I tried CDO for creating folder of contact type in message store root,
but it seems that only folder of type post can be created.
There are no other parameters in Add function of Folders collection.

I have tried to solev this problem with MAPI,
I tried IMAPIFolder->CreateFolder(...)
but in this function is not parameter which determines type of new folder,
so the same problem like in CDO.

How can I create folder with determined type ?

Thanks !
Peter
 
Set the PR_CONTAINER_CLASS property on the folder using either
MAPIFolder.Fields() in CDO or using IMAPIFolder,SetProps/HrSetOneProp in
Extended MAPI.

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