Hardware access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to switch to windows programming and have no idea how to access hardware in windows. please help
 
MTB said:
I want to switch to windows programming and have no idea how to access hardware in windows. please help

You will most likely need to write a driver (or use a standard driver
available for your device).

What kind of hardware is it?
 
I have a custom made memory mapped IO, but I want to be able to work with any hardware in windows OS,(such as ISA, PCI, computer ports and others) as I can in DOS. I don't know where to start!
 
If you are using a Win98 OS (Win98, 98SE, ME) you can access your
hardware using _outp() and _inp() functions.

If, however, you are using an NT-based OS (NT, 2000, XP) you need to
write a device driver to do this. You need Microsoft's DDK (this used to
be free but you now need to buy it) to write the driver and I think
there is sample code for a simple driver that will support memory-mapped
IO as you require so you can customise this for your own use quite easily.

In your driver, you then use DeviceIoControl() calls to do your ins and
outs as required.
 
Thank you for your comment. I would realy appreciate it if you could tell mw were to find microsoft DDK, I have 95, but which one supports all operating systems.
 
Back
Top