Hi, I was gonna mess around some with Aspi. Code compiles and everything but it can't retrieve GetAspiSupportInfo from wnaspi32.dll though I don't see why since the dll seems to be loaded: _______________________________________________________ .386 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\masm32.inc include \masm32\include\wnaspi32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib includelib \masm32\lib\masm32.lib .data AppName db "Aspi App",0 StatusString db "Aspi is ",0 AvailString db "available.",0 UnAvailString db "unavailable.",0 CrLf db 13,10,0 AdNumString db "Number of SCSI adapters on machine: ",0 NullChar db 0 LibErrorString db "Error !!! Couldn't load Library.",0 FuncErrorString db "Error !!! Couldn't retrieve function",0 FunctionNameAspiSupport db "GetAspi32SupportInfo",0 AspiDllName db "wnaspi32.dll",0 .data? buffer db 512 dup(?) AspiStatus dd ? NumAdapters dd ? CharBuffer db 2 dup(?) hAspi dd ? FuncAddrAspiSupport dd ? .code start: invoke LoadLibrary,addr AspiDllName .IF EAX==NULL invoke lstrcat,addr buffer,addr LibErrorString jmp Exit .ENDIF mov hAspi,eax invoke GetProcAddress,hAspi,addr FunctionNameAspiSupport .IF eax==NULL invoke FreeLibrary,hAspi invoke lstrcat,addr buffer,addr FuncErrorString jmp Exit .ENDIF mov FuncAddrAspiSupport,eax invoke lstrcat,addr buffer,addr StatusString call FuncAddrAspiSupport invoke FreeLibrary,hAspi mov AspiStatus,eax .IF ah==SS_COMP invoke lstrcat,addr buffer,addr AvailString invoke lstrcat,addr buffer,addr CrLf invoke lstrcat,addr buffer,addr AdNumString and eax,0FFh mov NumAdapters,eax invoke dwtoa,addr NumAdapters,addr CharBuffer invoke lstrcat,addr buffer,addr CharBuffer invoke lstrcat,addr buffer,addr NullChar .ELSE invoke lstrcat,addr buffer,addr UnAvailString .ENDIF Exit: invoke MessageBox,NULL,addr buffer,addr AppName,MB_OK invoke ExitProcess,NULL end start _______________________________________________________ This message was edited by goofee, on 5/7/2001 11:04:32 AM
Posted on 2001-05-07 10:55:00 by goofee
Ok. I got last error and whattayaknow: Function not found. I know GetAspi32SupportInfo is there cause I dumped wnaspi32 DLL. Ok right with this post I've found what had to be wrong. Of Course misspelled the function call. Sorry bout the mess-up. ---------- goofee This message was edited by goofee, on 5/7/2001 5:31:20 PM
Posted on 2001-05-07 17:27:00 by goofee