Solved

Reading address F000:FFF0 (BIOS Date) From VC Console Application

Posted on 2006-06-18
4
545 Views
Last Modified: 2008-02-01
Dear Masters

Please guide me to know how i can Read address F000:FFF0 (BIOS Date) From VC Console Application, I want read this address and addresses like this, i don't want to get BIOS date throuhgh reading registery keys , i just want to read this area of memory, please guide me.

Thank you in advance for your information

Sincerely Yours
==========
Milad
0
Comment
Question by:miladyyy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 16929309
Can't do it, at least not directly.  VC (I assume you mean Visual C++ here) creates WIN32 applications, regardless of whether it's a CONSOLE app or a GUI/windowed app.  

WIN32 provides NO ACCESS to physical memory addresses by an application.  Any address you read in a WIN32 app is a VIRTUAL address, not a physical address.

The only way to read a physical address is from KERNEL MODE which means you must use a DEVICE DRIVER.

Why do you want to do this anyway?  The proper way to get or set the date is to use the WIN32 APIs provided for that purpose.  They are:

void GetLocalTime(
  LPSYSTEMTIME lpSystemTime
);


BOOL SetLocalTime(
  const SYSTEMTIME* lpSystemTime
);


0
 
LVL 32

Expert Comment

by:jhance
ID: 16929318
If you really want to do this, however, you can get the Windows DDK from Microsoft and build a simple real memory access device driver and then install that driver.  Then you can communicate with it from your VC WIN32 application through the CreateFile() and DeviceIoControl() APIs.

Perhaps it would help if you explained what you are trying to do anyway.  There may be a way of doing it without having to go through all the trouble of writing and installing a driver.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
A short article about problems I had with the new location API and permissions in Marshmallow
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Six Sigma Control Plans

688 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