Two ways:
1. In CodeWarrior, in your Project settings, under Palm Rez Post Linker,
check
the box that says "Copy Protect".
2. This is from the Dr. McCoy sample code:
static void ProtectTheDatabase( )
{
// If old headers are being used
#ifndef dmHdrAttrCopyPrevention
#define dmHdrAttrCopyPrevention 0x0040
#endif
UInt cardNo;
LocalID dbID;
UInt attributes;
// Find this database
SysCurAppDatabase( &cardNo, &dbID );
if ( dbID )
{
// Get current attributes, turn on protection, and save
them.
DmDatabaseInfo( cardNo, dbID, 0, &attributes,
0,0,0,0,0,0,0,0,0 );
attributes = attributes | dmHdrAttrCopyPrevention;
DmSetDatabaseInfo( cardNo, dbID, 0, &attributes,
0,0,0,0,0,0,0,0,0 );
}
}
That should help...also, you probably don't want your app to back itself up
during HotSync.
//* Rus Daniel Nesse
//* Application Development
//* Avnet Convergent Technologies
>-----Original Message-----
>From: Steve Achelis [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 24, 2000 10:41 AM
>To: Palm Developer Forum
>Subject: Preventing Beaming
>
>
>Is there a way to prevent an application from being beamed from a Palm
>device (i.e., to slow piracy)? Seems I read about a bit
>somewhere (and the
>knowledge base appears to be down).
>
>Steve
>
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/