By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,953 Members | 1,562 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,953 IT Pros & Developers. It's quick & easy.

How can I dirty read locked files?

P: n/a
Hi,

I posted this on the dotnet.framework newgroup, but no one replied, so I
thought maybe this newsgroup might help.

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!

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.