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)
Change History (3)
by , 10 years ago
| Attachment: | SetupDiEnumDeviceInfo.zip added |
|---|
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| 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