Slide 10.10: DB.c Slide 10.12: Line-by-line anatomy of DB.c (cont.) Home |
DB.c
Err retcode = 0;
Err
is an error code.
DmOpenDatabaseByTypeCreator( DBType, CreatorID, dmModeReadWrite | dmModeShowSecret )
type
: Type of database
creator
: Creator of database
mode
: Which mode to open database in (see “Open Mode Constants”)
DmOpenDatabaseInfo( db, &dbID, NULL, NULL, &dbCard, NULL );
errNone
if no error.
dbP
:
DmOpenRef
to open database
NULL
if you do not want to retrieve this information.
dbIDP
:
The ID of the database
openCountP
:
The number of applications that have this database open
modeP
:
The mode used to open the database (see “Open Mode Constants.”)
cardNoP
:
The number of the card on which this database resides
resDBP
:
If true
upon return, the database is a resource database, false
otherwise.