The following example shows you how to open an existing PST file in read/write mode, add folders and items, and save the changes back to the same file. New items are built from a independentsoft::msg::Message and wrapped in an independentsoft::pst::Item.