Hi all,
Bit of a daft question this, as I know there are ways around it, but is there a way to directly lock an Operating System record when in OI ??
TIA,
Simon
OSOpen should do it.
World leaders in all things RevSoft
That was what I had hoped.
I tried that on two different machines to test that and it didn't appear to work (using UD3)… ie the second one opened the file already opened by the first.
Simon
In which case you may need to use some lower level Windows API calls to accomplish this.
Note that the LH Network driver has nothing to do with the "OS"-functions - they are direct calls to Windows.
World leaders in all things RevSoft
Alternatively, if you are only accessing this file from within your OI app, and that's the only place you care about the lock, then just lock a consistent handle.
lock @FILE_SYSENV, dosFileName then…..
World leaders in all things RevSoft
Revelation Conference 2007, London - Wednesday 27th June Click here to register for the premier Revelation Software EMEA event of 2007
Thats the workaround I was going to use, just it would have been nice to do a good clean lock …
![]()
Simon