473,383 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Hardware access

MTB
I want to switch to windows programming and have no idea how to access hardware in windows. please help
Nov 17 '05 #1
4 1470
MTB wrote:
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?

Nov 17 '05 #2
MTB
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!
Nov 17 '05 #3
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.
MTB wrote:
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!


Nov 17 '05 #4
MTB
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.
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lorax | last post by:
I'm on the IS team of a medium-sized non-profit with international reach. We're trying to make some decisions regarding our Web server and database server as we expand our web site to have more...
4
by: I.P. Freely | last post by:
Greetings my dear friend, Let's say I wanted to write an application that talks directly to a network card. For example, say I'm designing a firewall or packet sniffer. Do I need to use...
6
by: Bill Elgie | last post by:
This is about a mysterious slow down only. An application (split data & FE) that has run for 6 years without error with six to ten users. The hardware (not my job) has been ‘updated' and a new...
6
by: agnivesh | last post by:
Hi there, I'm a beginner in C programming and want to learn how to write C (pure C) code to access hardware ports (serial,parallel,usb etc.) under windows environment ? 1. Please, suggest any...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
3
by: Tom | last post by:
Is there any way to 'download' a control that could access hardware on a PC? Reason is that I am considering retooling a client-server app of ours over to ASP.NET (VB.NET). However, currently that...
41
by: x01001x | last post by:
When programming in C (not C++) how does one send information to a hardware device such as a video card or modem? How is this done in Linux C programming versus Microsoft C programming?
5
by: mohamed azaz | last post by:
hi I want to know can c++ deal with hardware?? like fax modem or Lan or Audio device
9
by: chandru4ni | last post by:
Hello, I know there exits Windows APIs for reading the logon credentials. We can read the logon password using the APIs. I am working on a module which requires the finger print ID associated...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.