Getting Database properties through C++ API

I would like to get and set the following properties of a database (Mail Database), I am using 2.4 C++ API:1) Folder References Enabled, if not enable

  1. Softdeletions Enabled, if not enable

Also, getting the Calendar profile has changed from R5 I guess. In R5 I used LNDatabase.OpenCalendarProfile( Canonical Name of the user, &doc);

Do I have to use OpenCalendarProfile( NULL, &doc) in R6. If a user sets his calendar profile, does Notes set the calendar profile document for NULL or for the CN Name of the user.

Thanks,

Radhika