News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Interruption handling

Started by reiniersb, February 13, 2007, 07:46:30 PM

Previous topic - Next topic

reiniersb

hi everyone!

I really need your help with this problem.
This is what I need: I need to develop an independent application that will work under Windows XP. This application is intended to implement the control for a simple process, so it will have to adquire and return data through a computer port. I'm planning to use the LPT port due to the A/D and D/A chips that are available have parallel interface. I need to do this in MASM so all I need to know is how I can capture the interruption event of the parallel port, the DMA controller and the timer module. I have done this in Win9x changing the interruptions vectors to my own interruption routines, wich is very simple, but in NT, 2000 and XP it will raice an exception. I wonder if the way is the use of APIs, the implementation of a system hook or something like that.
In MASM32 I will able to do that?
How?

BogdanOntanu

NO... you can not do it in NT, WIn2k, XP:D

You have to write a kernel mode driver for this... even so...
not all IRQ's can be redirected ... only some of them.

In VISTA you will not be able to load a driver unless you get a direct signature from Microsoft.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

reiniersb

And what about a gate descriptor? Can I use it to solve this?

P1

Check out AsmIO here: http://www.madwizard.org/view.php?page=downloads

It works for W2K, so it should work for XP.  All bets are off for managed code for Vista.

Let us know if gets you going.

Regards,  P1   :8)