Mike,

Not sure what the situation is that you want to know if it's protected, but
you could try...

1) On OS4 listen out for the sysNotifyDeleteProtectedEvent when you try to
delete it.

2) Call DmDatabaseProtect(cardNo, dbID, false) and see if it returns errNone
or dmErrDatabaseNotProtected. Obviously you may then have to protect it
again...

3) If you have the Palm OS source have a look at the function
PrvDatabaseIsProtected() and see if you can use something similar to that -
I'm not convinced you can as it uses system globals.

...don't know if any of those will spark off a moment of genius in someone.

Cheers, Scott


"Mike McCollister" <[EMAIL PROTECTED]> wrote in message
news:104721@palm-dev-forum...
>
> I can protect a database using DmDatabaseProtect but how do I detect if it
is
> protected?
>
> Thanks,
>
> Mike McCollister
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to