I am backing up & restoring all PDBs on a device. The "Net Prefs" PDB is always protected, even after a hard reset, so I am unable to restore the backed-up copy of "Net Prefs." This is because to restore a particular PDB, I first delete any existing copy of this PDB on the device, and then copy the backed-up PDB onto the device. Due to its protection, I cannot delete Net Prefs so that I can then restore the backed-up copy.
Of course, I can get around this by catching the dmErrDatabaseProtected err from the DmDeleteDatabase() call, and calling an adequate number of DmDatabaseProtect(..., false) calls so as to render it unprotected (it only takes one, in fact). Then, I can delete Net Prefs just fine. But... I figure there's probably a good reason why this database is protected, and I certainly don't want to corrupt the Net Prefs database. :) Is there a better way to back up Net Prefs? Or is it safe to unprotect the database (one would hope the sysNotifyDeleteProtectedEvent would tell whoever protected Net Prefs in the first place to clean up and un-protect it), blast it, and immediately restore a backed-up copy? Thanks! -Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
