Hi! am trying to create a program in vb that would contantly check the status of my connection with SNA and I used the following code (COM) to do so.
Set WmiLocator = CreateObject("WbemScripting.SWbemLocator")
Set WMINamespace = WmiLocator.ConnectServer("", "root\MicrosoftHIS",
vbNullString, vbNullString, vbNullString, vbNullString, 0, Nothing)
but my problem now is that it sometimes hang on the code specified. Is there a way to prevent this?
Set WmiLocator = CreateObject("WbemScripting.SWbemLocator")
Set WMINamespace = WmiLocator.ConnectServer("", "root\MicrosoftHIS",
vbNullString, vbNullString, vbNullString, vbNullString, 0, Nothing)
but my problem now is that it sometimes hang on the code specified. Is there a way to prevent this?