Solved

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

Posted on 2006-06-18
4
539 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

8 Experts available now in Live!

Get 1:1 Help Now