Solved

Breaking through HAL

Posted on 1998-04-08
5
259 Views
Last Modified: 2010-04-10
I need to store various structures at specific addresses on and Windows NT machine.  Unfortunately Windows NT had a Hardware Abstraction Layer (HAL) which seems to prevent me from doing this.  Is there a way to break through HAL or at least get around it so that I can do this?  I need help fast
0
Comment
Question by:jerm
  • 3
5 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1184119
What do you mean by "store various sturcutres at specific addresses"?  Windows 95 and NT use virtual memory.  You cannot have dirrect access to physical memory. But you should not need dirrect access to physical memory.  Why do you want to do this?
0
 

Author Comment

by:jerm
ID: 1184120
Actually I am reusing old code which uses direct IO (access to physical memory) to share data between two computers running real time applications.  I understand that Win95 and NT do not like this, but was hoping to be able to use the old code without many changes.

Is this possible
0
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1184121
No.  

But with some work you can make it work.  Try using a memory mapped file instead.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184122
Use the CreateFileMapping() API.  You will probably want to use a "named" mapping so the two programs can use the same mapping.  (The other option is to pass a handle from one program to the other, but this usually requires that the one program starts the other running.  I don't know if that's the case you have.)  

I hope this help gets you started.  Ask if you have any questions.
0
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1184123
One simple answer:
You need to write a device driver.
Its not that hard, try looking at the samples from the Win32 device driver kit.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Parsing XML instructions in Java/any other language.... 3 121
Header of docx file 17 131
Gaming Software 1 29
Coding for the first time 9 67
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question