Help me on IO port access.

Dear all,
Now, I must write a application that can read and write arbitrary IO port
under 98 and NT.
Under Windows 98:
I write a Win32 application that read and write all IO port,it can be
compiled and runned.
When I run it, no GP error occur, but system crashed with no keyboard and
mouse reaction.
So, all IO port can be read/write, but it is not safe to write some
critical port ,
am I right?
Under Windows NT:
The portio sample is not fit for my need.I should can read/write all
arbitrary port.But
portio only can claim partial IO port,it is silly to claim all port in
portio.
What can I do?
Help me please.
Thanks.
BR
Volition2k

Get a copy of Cris Cant’s book _Writing Windows WDM Device Drivers.
There are on the CDROM generic drivers for both WinNT and Win2k
that permit the reading/writing of arbitrary i/o port addresses.
Source is included. Using this code will save you a lot of time.

At 08:58 AM 04/07/2000 +0800, you wrote:

Dear all,
Now, I must write a application that can read and write arbitrary IO port
under 98 and NT.
Under Windows 98:
I write a Win32 application that read and write all IO port,it can be
compiled and runned.
When I run it, no GP error occur, but system crashed with no keyboard and
mouse reaction.
So, all IO port can be read/write, but it is not safe to write some
critical port ,
am I right?
Under Windows NT:
The portio sample is not fit for my need.I should can read/write all
arbitrary port.But
portio only can claim partial IO port,it is silly to claim all port in
portio.
What can I do?
Help me please.
Thanks.
BR
Volition2k


You are currently subscribed to ntdev as: xxxxx@mindspring.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


David Feustel
Fort Wayne, Indiana
219-483-1857 (voice)

xxxxx@mindspring.com
http://www.mindspring.com/~dfeustel