lock = DupLockFromFH(fh)
D0 D1
BPTR DupLockFromFH(BPTR)
Obtain a
Lock on the object associated with fh. Only works if the file was opened using a non-exclusive mode. Other restrictions may be placed on success by the file system.
DupLockFromFH() may show unpredictable behaviour if the
ChangeMode() function was used with a mode which is none of MODE_NEWFILE, MODE_OLDFILE or MODE_READWRITE.