FFAspiStart
start ASPI support

Prototype

Put the following prototype in the prototypes section of the application program header file:

   bool ( __stdcall *pfnFFAspiStart )( HWND );

Purpose

Start ASPI operations. It does the following:
  • load WNASPI32.DLL if it exists
  • load the addresses of GetASPI32Support and SendASPI32Command
  • check that the ASPI support is operating, and that at least one SCSI host adapter is fitted into the PC bus
  • create the event used for event notification

Description and use

Just call the function before sending any command to any SCSI device attached to the SCSI chain.

Specification

None.

Parameters
  • handle to the window of the calling program: it is used to return error messages in case any of the operations described above fails

Return value

The function returns:
  • true: ASPI support correctly started
  • false: an error occurred, and an error message is displayed; the message describes the kind of error that occurred

Application examples

See also

Notes