473,671 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1480
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
2042
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 dynamic content. Currently the database server houses all data pertinent to the organization (membership data, events, products, etc) in one database (~2.2 GB) as well as the web site content in a separate database (~40 MB). The web site pulls from...
4
2237
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 unmanaged code to do this? I'm wondering how I should arrange the "division of labor" between managed and unmanaged code. Let's make the example even simpler by saying that I want to design a form with a button on it. When the button is clicked, I want...
6
1522
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 fast server added. The data has been moved to the server and the program exists on each separate user's pc. The original program version in Ac97 for data and program was then updated into Ac2000 as it appeared to use less resources but it is just...
6
10934
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 online tutorials or free ebooks etc. for that. 2. Is it possible to do above tasks using MingW Developer Studio, GTK+ etc. ? I've just downloaded these tools and want to make sure before
110
10556
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 case scenario for MyISAM backend? Also is it possible to not to lose data but get them corrupted?
3
2123
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 app has options that 'talk' over the serial port to a piece of hardware, controlling it and getting information to/from it. The ASP.NET app would need to do the same think. Previously, in VB6, I believe one could do something like this by...
41
4424
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
2527
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
3115
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 with the finger print logon. If such an information exists please let me know. One of the interface in the module requires that input. Please do the needful.
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.