On success, this function returns the label SETUP_SUCCESS. In the event of an error, this function
returns one of the error codes listed in Table 8-1.
Error Codes
Error codes returned by functions in this API are given in Table 8-1.. These values are defined in the
header file BIOSINC.H.
Return Value
SETUP_INVALID_PARAMETER
SETUP_INTERNAL_ERROR
Option and Setting Parameters
Option and Setting parameters accepted by the functions described in this chapter are defined in the
header file for the DLL. Table 8-2 lists the Option parameter and corresponding Setting parameters for
each BIOS option. (These Setting parameters are also the values returned by the ReadBIOSSettings function
on success.)
Option Parameter
Option Description
SERIAL_PORT
Serial Port
SERIAL_ADDRESS
Serial Port Address
SERIAL_INTERRUPT
Serial Port Interrupt
INFRARED_PORT
Infrared Port
INFRARED_ADDRESS
Infrared Port Address
INFRARED_INTERRUPT
Infrared Port Interrupt
Table 8-1. BIOS Configuration API Error Codes
Description
The Option parameter is out of range. The value passed does not
specify a valid BIOS option.
Windows system call failure.
Table 8-2. Option and Setting Parameters and Return Values
Setting Parameter
SERIAL_PORT_ON
SERIAL_PORT_OFF
SERIAL_PORT_AUTO
SERIAL_ADD_2E8
SERIAL_ADD_2F8
SERIAL_ADD_3E8
SERIAL_ADD_3F8
SER_INT_IRQ3
SER_INT_IRQ4
INFRARED_PORT_ON
INFRARED_PORT_OFF
INFRARED_PORT_AUTO
INFRA_ADD_2E8
INFRA_ADD_2F8
INFRA_ADD_3E8
INFRA_ADD_3F8
INFRA_INT_IRQ3
INFRA_INT_IRQ4
Setting Description
Enabled
Disabled
Auto
I/O Address 2E8
I/O Address 2F8
I/O Address 3E8
I/O Address 3F8
IRQ 3
IRQ 4
Enabled
Disabled
Auto
I/O Address 2E8
I/O Address 2F8
I/O Address 3E8
I/O Address 3F8
IRQ 3
IRQ 4
Error Codes
8
8
70