?
Solved

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

Posted on 2006-06-18
4
Medium Priority
?
547 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Six Sigma Control Plans

764 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