10
votes
Is File In Use
JEDI Windows API
– In a thread on DelphiPraxis there was a question that comes up several times a year. However, this time I could remember that there is actually an COM API that can solve the problem. The question was about how to find out which process has a lock on a file. The main problem was, in deed, that I could not remember the API’s name so Assarbad put some effort in retrieving it. Thanks. The name of the API is IFileIsInUse, an interface. It resides in Shobjidl.h, Shobjidl.idl and newly in JwaShlObj.pas. This is the translation: {$IFDEF WINVISTA_UP} const IID_IFileIsInUse: TGUID = ( ...
Statistics
|
Visits by Source |
User Actions |




