How to dirty read locked files

  • Thread starter Thread starter Neil
  • Start date Start date
N

Neil

Hi,

I'm writing a file utility and would like my program to at least try to read
a locked file like an open Microsoft Word document. I've seen other such
utilities that have an option whereby it attempts to open locked files, but
frankly I have no idea how they do it.

While I'm sure the answer probably requires P/Invoke, I have no idea what
API functions to call. I don't think CreateFile has an option to force open
locked files. Are other utilities that do this using memory mapped files
perhaps?

Thank you anyone for any hints and help!
 
Back
Top