﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
833	Bug in function DllOpen ()	fristo		"A Dll that not exist can not provide a handle. In this case the DllOpen function return value @error should set to -1.



{{{
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         fristo

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

	Local $nameDll=""netapi32.dll""
	Local $Netapi
	
	$Netapi = DllOpen($nameDll)
	MsgBox(64, ""@ERROR Of DllOpen"", ""Call DllOpen ("" & $nameDll & "")"" & @CRLF & @CRLF & ""@error = "" & @error)
	DllClose($Netapi)
	ExistDLL ($nameDll)


	$nameDll=""net___api32.dll""
	$Netapi = DllOpen($nameDll)
	MsgBox(48, ""@ERROR Of DllOpen"", ""Call DllOpen ("" & $nameDll & "")"" & @CRLF & @CRLF & ""@error = "" & @error)
	DllClose($Netapi)
	ExistDLL ($nameDll)
	
	Exit
	
	
; =============================================================================	


Func ExistDLL ($name)	
	
	Local $fullName = @SystemDir & ""\"" & $name
	
	If FileExists($fullName) > 0 Then
		MsgBox(0, ""Result of FileExist"", ""File '"" & $fullName & ""'"" & @CRLF & @CRLF & ""exist"")
	Else
		MsgBox(48, ""Result of FileExist"", ""File '"" & $fullName & ""'"" & @CRLF & @CRLF & ""exist not"")
	EndIf
	
EndFunc
	
	
; =============================================================================	
}}}
"	Bug	closed		AutoIt	3.3.0.0	None	No Bug		
