Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BIOS calls to detect a PCI card

Status
Not open for further replies.

kosuriv

Programmer
Apr 17, 2003
1
IN
Hello
I am tring to use the following code to detect a PCI card on windows 2000. But I am getting run time problem. Essentialy i am unable to call BIOS call. Can any one help?
static int PCIFindDevice( DWORD device_id, DWORD vendor_id, DWORD index)
{
__asm {
mov eax, 0xb102
mov ecx, device_id
mov edx, vendor_id
mov esi, index
int 0x1a
jc fail
jmp success
}

fail:
return 0;

success:
return 1;

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top