Can anyone give me a code example that will use the Parallel-port, just like the OUTP and INP functions in C++, but a version that supports Win2000, and I don't want to use DriverLINX Port I/O.
I guess you can't read :rolleyes: must be hard to deal with the answers then.
Moved from algos & source to main.
Moved from algos & source to main.
I guess you can't read :rolleyes: must be hard to deal with the answers then.
Moved from algos & source to main.
Well, I was looking for an _algortithm or source_ to the parallelport...
In order to do port access under NT your going to have
to use a kernel mode driver to get access to the ports.
there is a freeware dll, that will allow you to do this. Exagone
was kind enought to adjsut the extern declarations and
make a masm lib for us. it can be found at
http://spiff.tripnet.se/~iczelion/files/AsmIO.zip
you still need to get the dll and driver from www.internals.com
its a nice freeware library. I just used it to port a linux
hack for the ravemp to windows 2000. works like a charm.
look that the following functions ,
GetPortVal
SetPortVal
these are equivelent to the
inb and outb.
if you dont need the other stuff, its pretty easy to make a kmd
that just does port access using
WRITE_PORT_UCHAR ect functions...
hope this helps
prs
to use a kernel mode driver to get access to the ports.
there is a freeware dll, that will allow you to do this. Exagone
was kind enought to adjsut the extern declarations and
make a masm lib for us. it can be found at
http://spiff.tripnet.se/~iczelion/files/AsmIO.zip
you still need to get the dll and driver from www.internals.com
its a nice freeware library. I just used it to port a linux
hack for the ravemp to windows 2000. works like a charm.
look that the following functions ,
GetPortVal
SetPortVal
these are equivelent to the
inb and outb.
if you dont need the other stuff, its pretty easy to make a kmd
that just does port access using
WRITE_PORT_UCHAR ect functions...
hope this helps
prs