• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Segment:offset info

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

glebka11

Member
Joined
Oct 12, 2003
Location
Canada
hey guys,
i am going to make an app which will tell you things about your BIOS. well i need to get the string by SEGMENT:OFFSET adressing.
do you know any function in C/C++ which can do this (it will be in a dll file) ?


i tried this code:

int foo, i;
char strDate[8];


char _stdcall GetBiosDate()
{


for(i=0;i<8;i++)
{
foo = peekb(0xf000, 0xFFF5+i);
strDate = foo;
}
return strDate;
}


but i cant use the peekb command in dll without some library which i dunno. so it just gives me errors and dont compile...
 
Back