title: Which WINAPI function I must use to know if a file is blocked by another process?
body: <p>Which WINAPI function can I use to find out if a file has been opened by another process? </p>
  
  <p>I use C# and sometimes get the exception "The process cannot access the file because it is being used by another process".</p>