Modify

Opened 10 years ago

Closed 8 years ago

#3219 closed Bug (No Bug)

dllCall cause error with SetupDiEnumDeviceInfo

Reported by: Ontosy Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.2 Severity: None
Keywords: dllCall Cc:

Description

When i use dllCall with a C dll return a error 6 with SetupDiEnumDeviceInfo.
But if i use same dll with a C software it work.
Attache examples.

Attachments (1)

SetupDiEnumDeviceInfo.zip (3.5 KB ) - added by Ontosy 10 years ago.

Download all attachments as: .zip

Change History (3)

by Ontosy, 10 years ago

Attachment: SetupDiEnumDeviceInfo.zip added

comment:1 by J-Paul Mesnage, 8 years ago

Hi,

sorry too give some info after this long delay
the problem come from the DllOpen("test.dll") which fail
not sure to understand why
JUst run

Local $dll = DllOpen(@ScriptDir & "\test.dll")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $dll = ' & $dll & @CRLF & '>Error code: ' & @error & '    Extended code: ' & @extended & ' (0x' & Hex(@extended) & ')' & @CRLF) ;### Debug Console
Local $iLastError = _WinAPI_GetLastError()
Local $sLastError = _WinAPI_GetErrorMessage($iLastError)
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $sLastError = ' & $sLastError & @CRLF & '>Error code: ' & @error & '    Extended code: ' & @extended & ' (0x' & Hex(@extended) & ')' & @CRLF) ;### Debug Console
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $iLastError = ' & $iLastError & @CRLF & '>Error code: ' & @error & '    Extended code: ' & @extended & ' (0x' & Hex(@extended) & ')' & @CRLF) ;### Debug Console

comment:2 by J-Paul Mesnage, 8 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.