If ls = 0 Then LineOut GetResource("L_MsgLicenseStatusUnlicensed_1")
ElseIf ls = 1 Then LineOut GetResource("L_MsgLicenseStatusLicensed_1") -----------------------------------------------------
Function GetProductCollection(strSelect, strWhere) Dim colProducts
On Error Resume Next
If strWhere = EmptyWhereClause Then Set colProducts = g_objWMIService.ExecQuery("SELECT " & strSelect & " FROM " & ProductClass) QuitIfError() Else Set colProducts = g_objWMIService.ExecQuery("SELECT " & strSelect & " FROM " & ProductClass & " WHERE " & strWhere) QuitIfError() End If
set GetProductCollection = colProducts End Function
'If this is the local computer, set everything and return immediately If g_strComputer = "." Then Set g_objWMIService = GetObject("winmgmts:\\" & g_strComputer & "\root\cimv2") Set g_objRegistry = GetObject("winmgmts:\\" & g_strComputer & "\root\default:StdRegProv")
If Not g_serviceConnected Then g_serviceConnected = True End If Exit Function End If