Slide 10.16: Line-by-line anatomy of DB.c (cont.) Slide 10.18: Line-by-line anatomy of DB.c (cont.) Home |
DB.c
(Cont.)
FrmReturnToForm( 0 );
formID
:
Resource ID of the form to return to
recP = MemHandleLock( recH );
MemHandleLock
and MemHandleUnlock( ) should be used in pairs.
h
: Chunk handle
DmWrite( recP, 0, &dbRecord, sizeof( DBRecordType ) );
recordP
:
Pointer to locked data record (chunk pointer)
offset
:
Offset within record to start writing
srcP
:
Pointer to data to copy into record
bytes
:
Number of bytes to write
MemPtrUnlock( recP );
memErrInvalidParam
if an error occurs.
A chunk must not be unlocked more times than it was locked.
p
: Pointer to a chunk