Hello All,
I am pluging 30 day trial period counter in my application. I have created a
registration database with a different creator ID to store my Key
information.
I want to prevent a user from being able to delete a database from the
device. I have been trying to hide the database, with no luck.
DmSetDatabaseInfo does not raise an error, but the database still shows up
in the Launcher's list of items that can be deleted.
Code:
DmOpenDatabaseInfo(licedb, &dbID, NULL, NULL, &cardNo, NULL);
DmDatabaseInfo(cardNo, dbID, NULL, &attributes, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
//attributes |= dmHdrAttrCopyPrevention;
//attributes |= dmHdrAttrCopyPrevention | dmHdrAttrHidden;
attributes |= dmHdrAttrHidden;
err = DmSetDatabaseInfo(cardNo, dbID, NULL, &attributes, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
http://www.escribe.com/computing/pcpqa/m16715.html
There is no way to prevent a database from being deleted.
saved preference is not my choice. I want to prevent him from deleteing &
reinstalling.
Where should I store the key information??
Any comments or suggestions would be appreciated.
Jeffy
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/