Modify ↓
Opened on Apr 9, 2016 at 6:34:49 PM
Closed on May 9, 2018 at 6:07:06 AM
#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)
Change History (3)
by , on Apr 9, 2016 at 6:36:07 PM
| Attachment: | SetupDiEnumDeviceInfo.zip added |
|---|
comment:2 by , on May 9, 2018 at 6:07:06 AM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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