Modify

#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 on Apr 9, 2016 at 6:36:07 PM.

Download all attachments as: .zip

Change History (3)

comment:1 by Jpm, on Apr 5, 2018 at 7:30:48 PM

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 Jpm, on May 9, 2018 at 6:07:06 AM

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.