Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : File being used by another process
| Subject: | File being used by another process |
| Posted by: | "Francois Piette [ICS & Midware]" (francois.piet..@overbyte.be) |
| Date: | Tue, 26 Feb 2008 10:03:16 |
In my application, it happend that I have to access a file in exclusive mode
while it is being accessed by another application.
I have two requets:
1) I would like to display the other application's name so that the user is
able to close it.
2) The file may also be from another workstation thru a network share and I
would like to display that workstation name. I can see it using windows
management tool, displaying Shared Folders/Open Files and I would like to
grab the same information from my own program.
Any piece of code or advice is welcome (Must run on W2K and above).
--
francois.piette@overbyte.be
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be