Hi.. somebody have idea how write te ports and the memory of WinNT-X OS?

Y like to write a dll library, but i not have idea.. first i a new programer of MASM32 and the second think is i don?t have idea to how access io port on NT...

Please any can help?me?


Prof. Roberto Berrospe...
Posted on 2002-05-05 01:29:04 by rabm
Do you mean winsock programming?
Posted on 2002-05-05 04:31:29 by bdjames
a serial port you can open with CreateFile, write and read to via WriteFile and ReadFile,....

Posted on 2002-05-05 04:50:25 by Hiroshimator
So IN/OUT are privileged instructions now?
Posted on 2002-05-05 05:33:31 by bdjames
yes james, they've always been in protected mode. There's a I/O
permission bitmask though, so the OS can grant an app to write
to some ports if it wants to - but it's safer requiring you to use an
API for it. I believe there's some 9x-and-NT library available for
doing in/out, or perhaps it was only for serial I/O.

If you want to write to arbitrary memory addresses, you'll have to
write a VXD for 9x and a KMD for NT. If you just want to write to
other processes, there's Read/WriteProcessMemory.
Posted on 2002-05-05 07:36:23 by f0dder
Speaking of, has anyone actually hacked out a Windows Driver Model for NT machines yet in assembly?

Finding infro on this not easy. (Other than *trying* to read the DDK itself).

Posted on 2002-05-05 10:21:25 by NaN
Has anybody hacked it out in ANY language?

I have the Microsoft Press how-to book, I forget offhand who wrote it, he was pretty clear explaining it for W95. But I can't make it half way into chapter 2 of the WDM book.

Is it me? ;-)
Posted on 2002-05-05 21:56:18 by Ernie
Yes, it is possible - and has been done.
Recently I was also having the very same
problem. I couldn't find all URLs I found on that
topic, but here's one that might help you:

Posted on 2002-05-24 15:55:37 by MikeJ