Note: Parameter names given in this manual in prototypes for some of these functions may differ from parameter names given in the prototypes that appear in the header files. This is done to provide consistent terminology throughout this manual.

InitializeBIOS

This function initializes the API. This function must be called before any other functions in this API can be called. This function,

Opens the API.

Connects to the APM BIOS.

A prototype of this function is shown below:

int InitializeBIOS ( void )

This function accepts no parameters and returns the value SETUP_SUCCESS when it completes successfully. If an error occurs, this function returns an error value as defined in Table 8-1.

UpdateBIOSCheckSum

Applications that initialize this API using InitializeBIOS must call this function before the application exits. This function performs the following tasks:

Updates the CMOS checksum and CRC values.

Disconnects from the APM BIOS.

A prototype of this function is shown below:

int UpdateBIOSCheckSum ( void )

This function accepts no arguments and returns the value SETUP_SUCCESS when it completes successfully. If an error occurs, this function returns an error value as defined in Table 8-1.

ReadBIOSSettings

This function retrieves the setting for a given BIOS option. You define the BIOS option to be retrieved by passing the appropriate parameters for the desired option. A prototype is shown below:

DWORD ReadBIOSSettings ( DWORD dwSetupParam )

The Option parameter defines the BIOS option you want to retrieve. Definitions for the Option parameter are listed in Table 8-2later in this section.

On success, this function returns the Setting for the requested BIOS option. See Table 8-2for a listing of settings for each BIOS option. Possible error codes returned by this function are listed in Table 8-1.

BiosSetupSet

This function sets the BIOS option you specify. A prototype of the function is shown below:

int BiosSetupSet ( DWORD dwSetupParam, int nValue )

The Option parameter defines the BIOS option you want to set. The Setting parameter defines the setting for the given option. Definitions for the Option parameter are listed in Table 8-2 on page 70.

InitializeBIOS69

Page 79
Image 79
Fujitsu FMW4503TS128A01 manual InitializeBIOS, UpdateBIOSCheckSum, ReadBIOSSettings, BiosSetupSet