DonChunior 3 Posted January 5 Despite using the function _WinAPI_Wow64EnableWow64FsRedirection(False) and having the appropriate DLL, the function _WinAPI_DllGetVersion in the following code always gives me @error = 1. #include <WinAPIFiles.au3> #include <WinAPIShellEx.au3> Main() Func Main() Local $sDllPath = @WindowsDir & "\System32\QMgr.dll" Local $aDllVersion = 0 _WinAPI_Wow64EnableWow64FsRedirection(False) If FileExists($sDllPath) Then $aDllVersion = _WinAPI_DllGetVersion($sDllPath) If @error Then ConsoleWrite("@error = " & @error & @CRLF) Else ConsoleWrite($aDllVersion[0] & "." & $aDllVersion[1] & "." & $aDllVersion[2] & @CRLF) EndIf EndIf EndFunc I don't understand what is the cause of the error and I hope someone can give me the crucial hint. Share this post Link to post Share on other sites
Nine 921 Posted January 5 As it says in help file : Quote This function is not an API. It is exported by name from each DLL that implements it. If the dll does not implement the 'DllGetVersion' function in its own DLL, you cannot use _WinAPI_DllGetVersion. 1 DonChunior reacted to this Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
DonChunior 3 Posted January 5 Thanks for the quick solution! I had not quite understood the remark in the help, but now everything is clear to me. Share this post Link to post Share on other sites
Nine 921 Posted January 5 You may use FileGetVersion instead ? 1 DonChunior reacted to this Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
DonChunior 3 Posted January 6 Exactly, the two functions FileGetVersion and StringSplit will also lead me to my goal. Share this post Link to post Share on other sites