Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

outlook.pst

0 views
Skip to first unread message

jjoohhnn

unread,
Dec 18, 2009, 12:59:21 PM12/18/09
to
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.

unread,
Dec 18, 2009, 2:27:09 PM12/18/09
to
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


"jjoohhnn" <jjoo...@microsoft.discussions.com> wrote in message
news:#iNIqvAg...@TK2MSFTNGP02.phx.gbl...

jjoohhnn

unread,
Dec 23, 2009, 4:10:11 AM12/23/09
to
Is there anyway to identify through programmatically in vc++?

"Pavel A." <pav...@12fastmail34.fm> wrote in message
news:7D4EBA29-4097-4E63...@microsoft.com...

marc

unread,
Dec 23, 2009, 5:45:01 AM12/23/09
to
On 23 déc, 10:10, "jjoohhnn" <jjooh...@microsoft.discussions.com>
wrote:

> 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

unread,
Dec 23, 2009, 11:27:14 AM12/23/09
to
jjoohhnn <jjoo...@microsoft.discussions.com> wrote:
> 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

0 new messages