Jump to content

getting instance of the class "SSLBinding2"


 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...