Solved

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

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 103
egit plugin on eclipse 8 122
Android development question 2 103
File attachment in the SQL Database from application 10 38
In this post we will learn different types of Android Layout and some basics of an Android App.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

740 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