views:

21

answers:

1

I want to create program which will tell me if a file is used or not by another processes (for example i open music or video file in multimedia player, and then i launch my program with this file name programm return "this file is being used", and when no processes uses this file program would say "this file not being used").

What classes have the .NET for solve this problem?

A: 

There is also ETW tracing for File I/O which should help you figure out File I/O events. And here is how you can use ETW within managed code

Naveen