Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My 2003 Land Rover discovery 2 key for code for car alarm 7 106
recursion example 16 111
iframe detection of parent window scale 20 59
Full Screen problem when auto scale IFRAME 2 55
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 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 …
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…

947 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

22 Experts available now in Live!

Get 1:1 Help Now