devilyn Posted August 22, 2012 Share Posted August 22, 2012 (edited) I'm trying to translate this DLL call to autoitUUIRTDRV_API BOOL PASCAL UUIRTGetDrvInfo(unsigned int *puDrvVersion);Retrieves information about the *driver* (not the hardware itself). This is intended to allow version control on the .DLL driver and accomodate future changes and enhancements to the API. Returns TRUE on success, as well as a driver version number in *puDrvVersion. NOTE: This call may be called prior to a call to UUIRTOpen.And that what i wrote in au3Func USBUIRT_DriverInfo() ConsoleWrite('@@ (63) :(' & @MIN & ':' & @SEC & ') USBUIRT_DriverInfo()' & @CR) ;### Function Trace Local $vers ;VarSetCapacity(vers, 12)[/size][/font][/color] [color=#0212BF][font=Arial, Helvetica, sans-serif][size=1]$callR = DllCall($hdll, "UINT_PTR", "UUIRTGetDrvInfo" ,"UINT*",$vers) ; Current driver version[/size][/font][/color] [color=#0212BF][font=Arial, Helvetica, sans-serif][size=1]If @error Then MsgBox(16, "Error", @error & " " & $vers & " " & $callR) ;drvvers : = NumGet(vers, 0) Else _ArrayDisplay($callR) _ArrayDisplay($vers) ConsoleWrite($vers&" "&$callR&@CRLF) EndIf Return $vers EndFunc ;==>USBUIRT_DriverInfoIt currently returns:[0] = 1[1] = 256And that's not version of the DLLThanks in advance Edited August 22, 2012 by devilyn Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2012 Share Posted August 22, 2012 (edited) as far as i understand from google search (im not saying that im correct) 256 shud be valid return data for driver informationif your looking for command that can return version of dll you can use this FileGetVersion("uuirtdrv.dll")and quick look at other code confirm itif (drvVersion != 0x0100) { LoggerWrapper::GetInstance()->Write(LV_CRITICAL,"ERROR: Invalid uuirtdrv version!n"); Sleep(1000); unLoadDLL(); return 0; }btw 0x0100 = 256 Edited August 22, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Colyn1337 Posted August 22, 2012 Share Posted August 22, 2012 Add another dimension to the array...... Maybe more information is being returned? Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2012 Share Posted August 22, 2012 no, return value is ok, edited upper post TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
devilyn Posted August 22, 2012 Author Share Posted August 22, 2012 THX!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now