Modify

Opened 4 years ago

Closed 2 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 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by Ontosy

comment:1 Changed 2 years ago by Jpm

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 Changed 2 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.