Is there a function to know when a file is locked/blocked by another process?
The only way I know is to open the file in exclusive mode, and it´s locked if it raises a error, but I don´t think that´s a good way.
Another, but a bit tricky solution is enumerate processes and file hanlde that keep your file. See sysinternals.com and their processExlorer.
But u need to use pinvoke for this reason.
But I think that enumerate the process is not the better approach to the system I´m developing.
Thanks so much, Michael.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?