Eduardo,
Did you mean file locks or record locks?
Either way, I use database objects. I wrote a subclass to TDatabase which adds many enhancements.
I added some enhancements for record locking including automatic retries if a record is already locked. Personally, I aways use optimistic locking so a record is only locked for a second, so locked records are not really an issue.
I rarely use file locking and I have not really needed to know who has a file locked. I am interested in this topic since it would be easy to add this feature to my database class. For anyone currently using a database class, this would then only require a recompile to add the new feature to an existing program. This is one of the great advantages of using classes.
If you are interested in more info about my TData class go here:
http://gointellitech.com/program.htm
James