This value is not readable by any known means.
What is the closest is to track all changes to this value manually. Then we know the last value we set (or initially, we use the DAO Engine startup value, which can be read from the Registry).
Implementation:
On startup, read and remember the value from the Registry (DAO Engine does the same, from Registry location which is commonly found documented) and during the runtime, just encapsulate the call of SetOption()
to procedure/method SetOption_Locks(newValue)
which takes note of a new value after making call to original SetOption()
. Create new method GetOption_Locks()
which returns the value learned before.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…