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;
}
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;
}