BOOLEAN GetSmapiEntry(PSMB pFunc) |
|
|
| |
{ |
|
|
|
|
PFSMB_HEADER_REAL | MyPtr | = ðxFððððððð ; | ||
WORD | cnt = | ð | ; |
|
BYTE | cksum | = | ð | ; |
//
//1) Search for signature first
while((cnt++ < ðx1ððð) &&
MyPtr++ ;
}
//
//2) Find the Signature?
if (cnt >= ðx1ððð) {
//We cannot find it. return FALSE ;
} else {
//3) Calculate Checksum
for (cnt = ð ; cnt <
if (cksum) {
//Bad Checksum return FALSE ;
}else {
//Build Return Address
(\pFunc) = (
}
}
}
ThinkPad 560/560E SMAPI BIOS |