none
How to access file which is opened with exclusive access by another process RRS feed

  • Question

  • Hi,

    I want to access a file which is already opened with exclusive access by some other process.

    First process opens a file (e.g  a.txt) with exclusive access (using CreateFile() API) and then start other process that wants to read this file. In the second  process, the CreateFile() func fails, as the first process has exclusive lock over the file (a.txt).
     
    I know that the I/O manager will not grant my request, as some other process is holding the lock (with exclusive access).

    Is there any way by which I can bypass the checks (such as file opened in exclusive mode) made by I/O manager and get access to file even if it opened in exclusive mode??

    Please give some information about it.

    Thanks.
    Monday, March 9, 2009 5:40 AM

All replies