InstrSession.GetLockState
- Updated2025-07-21
- 1 minute(s) read
InstrSession.GetLockState
Syntax
InstrSession.GetLockState( ownerKey, nestingLevel)
Purpose
Returns the key that owns the lock and the number of times the key acquired the lock.
Parameters
ownerKey As String
[Out] Returns the key that owns the lock. Returns an empty string for unlocked sessions.
nestingLevel As Long
[Out] Returns the number of times the owning key acquired the lock without a balancing call to the InstrSession.UnlockSession method. The owning key retains the lock until you call the InstrSession.UnlockSession method once for each successful call to the InstrSession.LockSession method.