Solved

Breaking through HAL

Posted on 1998-04-08
5
255 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now