469,934 Members | 2,151 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

How can I dirty read locked files?

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
0 1350

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Leon | last post: by
6 posts views Thread by Sean C. | last post: by
reply views Thread by Neil | last post: by
1 post views Thread by lactaseman | last post: by
5 posts views Thread by cmay | last post: by
6 posts views Thread by elake | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.