- There is a function called fileattrib, but in my case (Windows), it didn't work properly the last time I worked with it.
- Also, you can try with fopen, when the file is in use, check what is returned when you call the function.
- If this interface is some sort of program/process, you can check here