flat assembler
Message board for the users of flat assembler.

Index > Windows > How to intercept a function for information logging?

Author
Thread Post new topic Reply to topic
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm 04 Oct 2003, 15:10
Hey i was wondering how do i intercept a function(such as readfile, or writefile) so that i can log things such as the reading amount and info written to a .txt file. Im working on a little project here, and this will be sort of my own little debugger in a sense.
Post 04 Oct 2003, 15:10
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 05 Oct 2003, 03:02
What operating system? Local (per-process) or global (system) hook?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 05 Oct 2003, 03:02
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm 05 Oct 2003, 06:26
Well actually just today, i upgraded to win xp(go me.) from win98(i will miss it =(. ), and its for one process, im not trying to do anything illegal =)
Post 05 Oct 2003, 06:26
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 05 Oct 2003, 23:37
Very easy then. Check attachment, modify to your need. Sorry its in MASM. Sad


Description:
Download
Filename: gvihook.zip
Filesize: 9.01 KB
Downloaded: 835 Time(s)


_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 05 Oct 2003, 23:37
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm 06 Oct 2003, 05:06
thank you so much. =)
Post 06 Oct 2003, 05:06
View user's profile Send private message Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm 27 Oct 2003, 01:32
Comrade , I have a question. Is it suppose to work on some apps and others not work because of the way the sections are aligned? Some apps i've compile are intercepted fine, but others seem to just stall the app. Is it just my comp or can this occur for others?

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 27 Oct 2003, 01:32
View user's profile Send private message Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm 29 Oct 2003, 14:47
Hmm nevermind i found out the problem. For Comrade's code, it assumes that the file is 4k aligned, else it won't work.

That brings me to a question. How exactly do you align files in Fasm? is there some directive i have to add to the beginning of the file?

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 29 Oct 2003, 14:47
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.