Discussion:
outlook.pst
(too old to reply)
jjoohhnn
2009-12-18 17:59:21 UTC
Permalink
Hi All,

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,
Pavel A.
2009-12-18 19:27:09 UTC
Permalink
All open files are regular files.
To detect if a file is open by someone else you can use Sysinternals Process
Explorer
or "open handles" utility.
--pa
Post by jjoohhnn
Hi All,
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
2009-12-23 09:10:11 UTC
Permalink
Is there anyway to identify through programmatically in vc++?
Post by Pavel A.
All open files are regular files.
To detect if a file is open by someone else you can use Sysinternals
Process Explorer
or "open handles" utility.
--pa
Post by jjoohhnn
Hi All,
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,
marc
2009-12-23 10:45:01 UTC
Permalink
Post by jjoohhnn
Is there anyway to identify through programmatically in vc++?
Yes, simply enumerate opened files handles
(C source code often posted on Win32 ng (http://tinyurl.com/yjy3ajr))
Igor Tandetnik
2009-12-23 16:27:14 UTC
Permalink
Post by jjoohhnn
Is there anyway to identify through programmatically in vc++?
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
Continue reading on narkive:
Loading...