I am a C++ / Visual Basic programmer. The world of device drivers is new
for me. By the way, I have never seen a cookbook on WDM’s. Which is a
pity, because for a beginner, being able to have a good overview of things
is better than diving into complex subjects as IRP’s DAC’s etc…at the
beginning.
I am trying to output a byte value to an IO port of my computer. I have
developed an ISA board and I need to send some bytes to that board.
On windows 95 there is the Outp_ instruction that can do what I need.
Now on windows XP, I need a set of commands to access a device driver so
that I can output a byte to an address on the PC’s I/O space.
I have installed the WINDOWS DDK and I have been looking throught the
samples. I have found no good and straightforward information on how to do
it.
How can I find a good example on the commands I have to issue from my C++
application and how to define a device driver that can do what I need ?
Where can I find it ? Is there any sample driver that can do it ? How am
I suppose to register it with the .inf file. How to access it from within
the C++ code ? Where can I find a direct and straightforward example for
that ?
Thanks and best regards,
Antonio Fasano
Brazil
If you have the latest DDK, look at the portio example. It is a driver and
an application for reading/writing a set of ports on a system. Also, while
I have not tried this on XP, Dr. Dobbs Journal in May 1995 had a driver
called direct IO that will allow to use outp instructions to a specified
range of ports for an application.
Note, neither of these is a method that should be used for a commecial
product. For that you will need a good WDM driver.
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
----- Original Message -----
From: “Antonio Fasano”
To: “Windows System Software Developers Interest List”
Sent: Saturday, July 26, 2003 8:52 AM
Subject: [ntdev] Sending data to an I/O port
> I am a C++ / Visual Basic programmer. The world of device drivers is new
> for me. By the way, I have never seen a cookbook on WDM’s. Which is a
> pity, because for a beginner, being able to have a good overview of things
> is better than diving into complex subjects as IRP’s DAC’s etc…at the
> beginning.
>
> I am trying to output a byte value to an IO port of my computer. I have
> developed an ISA board and I need to send some bytes to that board.
>
> On windows 95 there is the Outp_ instruction that can do what I need.
>
> Now on windows XP, I need a set of commands to access a device driver so
> that I can output a byte to an address on the PC’s I/O space.
>
> I have installed the WINDOWS DDK and I have been looking throught the
> samples. I have found no good and straightforward information on how to do
> it.
>
> How can I find a good example on the commands I have to issue from my C++
> application and how to define a device driver that can do what I need ?
> Where can I find it ? Is there any sample driver that can do it ? How am
> I suppose to register it with the .inf file. How to access it from within
> the C++ code ? Where can I find a direct and straightforward example for
> that ?
>
> Thanks and best regards,
>
> Antonio Fasano
> Brazil
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@acm.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com