who open my files

J

James

At times due to 3rd party software limitation, passwords are stored in some
text or ini files.

i want to know what are the classes or methods to use to "prove" that file
is OPEN, not necessary changed.

When a file is open, i want to write to event logs or send email to the
owner.

i know how to write services, filesystemwatcher, etc, but i want to know
what is the best way to "check" that file is open by "who and at what
timestamp"

kindly advise
 
J

Jason Newell

James,

I do not have any experience in this, but here are some hints that may
help you get a little further. The .NET framework is not going to have
what you're wanting. You'll need to use PInvoke and some Win32
functions to accomplish what you're wanting.

Good luck!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/netfilegetinfo.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/netfileenum.asp
http://pinvoke.net/default.aspx/netapi32.NetFileEnum


Jason Newell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top