LockCurrentRmsRecord

LockCurrentRmsRecord locks the current RMS file record for exclusive use.  If other processes are using the record, the function fails and returns immediately.

Syntax

Function LockCurrentRmsRecord(rmsHandle as Inetger) As Boolean

Parameters

rmsHandle

RMS file handle

Return Values

On success, LockCurrentRmsRecord returns TRUE.  If failed, it returns FALSE.

Remarks

The function LockCurrentRmsRecord locks the current RMS file record for exclusive use. 

If other processes are using the record, the function fails and returns immediately. If you do

not want to return immediately while the record is busy, call LockRmsRecordWait.

See Also

LockCurrentRmsRecordWait, UnLockCurrentRmsRecord