News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how can I get data from the bios?

Started by Neo_4583, March 06, 2005, 12:21:28 PM

Previous topic - Next topic

Neo_4583

how can I get data from the bios?
PLZ help

MichaelW

eschew obfuscation

sluggy


Tedd

Is this the right place for turkey?
I want turkey.
No snowflake in an avalanche feels responsible.

pbrennick


Tedd

Neo, you have to let us know what data you want so we can help you. There isn't a generic getBiosData function.
No snowflake in an avalanche feels responsible.

Danesh

However it is almost unusual to read or write data directly to BIOS, but I think it can be done by reading (with  IN instruction) and writing (with OUT instruction) from/to a specified port.


pbrennick

Of course, that method will not work with newer versions of Windows like XP, for example.  It will not allow you to access the ports directly (how many times must we say this?).

Paul

mariø

I think you can do this:


theBiosFile db "BiosSpecification.txt"
Invoke CreateFile, Addr theBiosFile, GENERIC_READ, NULL, NULL, OPEN_EXISTING, FILE_ATTRIBUTE
Invoke ReadFile, eax, Addr mmm, ecx, NULL, NULL
.


:toothy sorry... I have drink too much beers :eek

Tedd

No snowflake in an avalanche feels responsible.