S
S
Sergey Polyntsev2015-04-15 18:14:16
Programming
Sergey Polyntsev, 2015-04-15 18:14:16

How, using Win API functions or .NET classes, to check if a file is occupied by another application?

Actually, the same question: How, using the Win API functions or .NET classes, to check if the file is occupied by another application? I tried to do it through an IOException, but it works only if in my own program I open that file for reading, do not close it, and open it again. And if the file is opened, for example, with a notepad, then it does not determine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-04-15
@The_Chemis

CreateFile not working?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question