Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Help me on IO port access.

OSR_Community_UserOSR_Community_User Member Posts: 110,217
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

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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: [email protected]
    >To unsubscribe send a blank email to $subst('Email.Unsub')

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

    [email protected]
    http://www.mindspring.com/~dfeustel
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 24 January 2022 Live, Online
Internals & Software Drivers 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online
Developing Minifilters 23 May 2022 Live, Online