How to identify whether this file is accessing by other application like
outlook.pst or normal document which is created in notepad. Based on what
paramers, we can conclude this is Open file and this is regular file.
Thanks in advance.
Regards,
"jjoohhnn" <jjoo...@microsoft.discussions.com> wrote in message
news:#iNIqvAg...@TK2MSFTNGP02.phx.gbl...
"Pavel A." <pav...@12fastmail34.fm> wrote in message
news:7D4EBA29-4097-4E63...@microsoft.com...
Yes, simply enumerate opened files handles
(C source code often posted on Win32 ng (http://tinyurl.com/yjy3ajr))
Just try to open the file in no-sharing mode. If you get a sharing error, you know the file is already opened by someone else.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925