Click to See Complete Forum and Search --> : How to detect aspi32


Mark Veldt
April 26th, 1999, 06:41 AM
Who can tell me how to detect if the winaspi is loaded with c++

Is this the same in win95/98 and winnt?

Thanks in advance

Mark

Danny L
April 27th, 1999, 05:14 PM
If I understand your question correctly, your application is not aware of any installation on the computer of the ASPI layer.

To use the ASPI you need to load a DLL, called the ASPI Layer DLL. If ASPI is installed this DLL is available on the system. You can do a LoadLibrary(wnaspi32.dll) to check this. Of course you know now that the DLL is there and loaded the DLL correctly. Next step is to lookup the ASPI functions in that DLL so that you can call the ASPI function to see if the ASPI is functioning correctly. If all this gives a positive return, ASPI is available and usable.

You can find the ASPI SDK with all the information you need on the Adaptec's Web-site, I don't know the exact link but check the developers links or downloadable files.

Hope this will help you.
Have a nice day
Danny Lauwers