Bob,
Here is what I got at this point. Is this pretty much what I need to do
to read through all dbs on the device?
//open a Data Manager Object to search the memory system
DmSearchStateType dbPt;
UInt16 cardNoP;
LocalID dbID = 0;
Err dbErr = errNone;
//get first db
dbErr = DmGetNextDatabaseByTypeCreator(true, &dbPt, 0, 0, false, &cardNoP,
&dbID);
//while: there are more dbs
while(!dbErr)
{
//read database, and test if its clean
//incomplete
//get next db
dbErr = DmGetNextDatabaseByTypeCreator(false, &dbPt, 0, 0, false, &cardNoP,
&dbID);
}
--
Scott Erickson
Software Development Team, FB-4, Inc.
[EMAIL PROTECTED]
"Robert Moynihan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Erickson wrote:
>
>>I am looking for a way to do a few things.... first, get a list of all
>>applications and all stored data on a Garnet device. second, read through
>>the data one at a time. third, edit or delete any data I dont want on my
>>device (could be stored anywhere, applications, records, database)...can
>>anyone help me with this?
>>
>>
> Generally, all applications, data, etc., will be in prc or pdb databases,
> and you can simply iterate through the entire memory using
> DmGetNextDatabaseByTypeCreator with wildcards for the type and creator
> params. Once you have each database, you can iterate through each record,
> getting a handle to the start of the record and scan the memory that is
> associated with the handle (limiting the scan to MemHandleSize(your
> handle)).
>
> Since you are looking for viruses, it could be that you need to look at
> the appInfo and sortInfo blocks too, if those could harbours for
> infection.
>
> Something like that.
>
> Bob.
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/