flat assembler
Message board for the users of flat assembler.

Index > Windows > Detecting file access

Author
Thread Post new topic Reply to topic
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
Hello,
I would like to log all the files and sub-directories that are being accessed in a predetermined directory, just like in the "Filemon" application. It will run under Win98. Do you have any idea on how to do this like what APIs to use?
Thank you in advance.
Post 05 Aug 2006, 16:30
View user's profile Send private message Reply with quote
farrier



Joined: 26 Aug 2004
Posts: 274
Location: North Central Mississippi
farrier
The only ways I know of require NT of Win 2000 or better.

FindFirstChangeNotification can report a change, but does not provide an easy way--that I know of--to determine which file or directory changed.

farrier

_________________
Some Assembly Required
It's a good day to code!
U.S.Constitution; Bill of Rights; Amendment 1:
... the right of the people peaceably to assemble, ...
The code is dark, and full of errors!
Post 05 Aug 2006, 19:12
View user's profile Send private message Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
does system-wide hooking work in win9x?
Post 05 Aug 2006, 23:17
View user's profile Send private message MSN Messenger Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Stalin, there is a hook API under Win9x called IFSMgr_InstallFileSystemApiHook

I suggest you get this book:
http://www.oreilly.com/catalog/winfile/inx.html

Thank you, Father Stalin!
Your legacy lives on!
Post 06 Aug 2006, 00:54
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
Thank you for your replies and sorry for the delay.

farrier,
Quote:

The only ways I know of require NT of Win 2000 or better.
FindFirstChangeNotification can report a change, but does not provide an easy way--that I know of--to determine which file or directory changed.

Yes, I have already seen this method, but I need to do it under Win9x.


okasvi,
Quote:
does system-wide hooking work in win9x?

I do not know exactly what you mean by "system-wide", but "Filemon" does find all changes made and it works very well under Win9x.


comrade,
Quote:
there is a hook API under Win9x called IFSMgr_InstallFileSystemApiHook

So, what exactly does the "IFSMgr_InstallFileSystemApiHook" do? And what should be done after that? A brief step by step explanation would be great.
Post 09 Aug 2006, 05:48
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Father Stalin, I do not know anything about it, but I did point you in the right direction. From there on you must do hard work and make us proud!
Post 09 Aug 2006, 22:39
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.