Skip to main content

[Migrated content. Thread originally posted on 20 October 2004]

We have been running on a Windows 2000 server with the thin client and using Vision files for several months. One problem I am having is trying to determine which user has a record locked.

All users are mapped to a single account on the server.

Short of recoding all of my applications, does anyone know how I can find the user or at least the PID of the task that has a record locked in a Vision file.

Thanks, Duane

[Migrated content. Thread originally posted on 20 October 2004]

We have been running on a Windows 2000 server with the thin client and using Vision files for several months. One problem I am having is trying to determine which user has a record locked.

All users are mapped to a single account on the server.

Short of recoding all of my applications, does anyone know how I can find the user or at least the PID of the task that has a record locked in a Vision file.

Thanks, Duane
There is a demo cobol app that shows how to utilize the Windows Server API to enumerate open files on a server.

I have however not been able to use it to identify the records locked, not even in C, so I wonder if that is a limitation of the Windows API.

If you are having all users logged in with the same user id, there is no chance to distinguish, except, you may be able to inquire for their station ID, and identify them that way...

Have you tried the Win API demo EnumOpenFiles.cbl?