Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Breaking through HAL

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
jerm
Asked:
jerm
  • 3
1 Solution
 
nietodCommented:
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
 
jermAuthor Commented:
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
 
nietodCommented:
No.  

But with some work you can make it work.  Try using a memory mapped file instead.
0
 
nietodCommented:
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
 
piano_boxerCommented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now