vpsodessa Posted February 13, 2017 Share Posted February 13, 2017 Hi! Tell me how to get to class Instances SSLBinding2 #RequireAdmin #include <GUIConstantsEx.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> #include <Array.au3> $oErrors = ObjEvent("AutoIt.Error", "Error_Handle") ;Initialize a COM error handler $sWMIService = "winmgmts:\\localhost\ROOT\WebAdministration" $strQuerySite = "SELECT * FROM SSLBinding2" $oWebAdmin = ObjGet($sWMIService) If IsObj($oWebAdmin) = 0 Then MsgBox(0, "", "Not an object") Exit EndIf $oSSLinstances = $oWebAdmin.InstancesOf("SSLBinding2") For $oSSLinstance In $oSSLinstances Next ;~ This is my custom defined error handler Func Error_Handle() Msgbox(0, "Debug Information", "An error has occured!" & @CRLF & @CRLF & _ "err.description is: " & @TAB & $oErrors.description & @CRLF & _ "err.windescription:" & @TAB & $oErrors.windescription & @CRLF & _ "err.number is: " & @TAB & Hex($oErrors.number,8) & @CRLF & _ "err.lastdllerror is: " & @TAB & $oErrors.lastdllerror & @CRLF & _ "err.scriptline is: " & @TAB & $oErrors.scriptline & @CRLF & _ "err.source is: " & @TAB & $oErrors.source & @CRLF & _ "err.helpfile is: " & @TAB & $oErrors.helpfile & @CRLF & _ "err.helpcontext is: " & @TAB & $oErrors.helpcontext & @CRLF & @CRLF & @CRLF) Return SetError($oErrors.number) EndFunc Link to comment Share on other sites More sharing options...
vpsodessa Posted February 13, 2017 Author Share Posted February 13, 2017 I generate code in AutoIT ScriptOMatic Tool http://pastebin.com/giteG8au and i have error : Quote "More data is available" What am I doing wrong? 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