Inherit Property Example (VC++)

This example sets the table container’s Inherit property to True, and then sets the Permissions property to allow users to alter the security settings of documents.

CdbDBEngine   dbeng;
CdbDatabase   dbsNorthwind;
CdbContainer   conTables;

dbsNorthwind =  dbeng.Workspaces[0L].OpenDatabase(_T("Northwind.mdb"));
conTables = dbsNorthwind.Containers[_T("Tables")];
conTables.SetInherit(-1);   //True
conTables.SetPermissions(dbSecWriteSec);
dbsNorthwind.Close();