Skip to content

Commit 7c9a577

Browse files
committed
Fix function headers
1 parent 82f3403 commit 7c9a577

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

VBScript/02_Upfront_Encapsulated_Code_With_No_Dependencies/GetComputerSystemInstances.vbs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
Function GetComputerSystemInstances(ByRef arrComputerSystemInstances)
22
'region FunctionMetadata ####################################################
3-
' Assuming that objWMINamespace represents a successful connection to the root\CIMv2
4-
' WMI namespace, this function retrieves the Win32_ComputerSystem instances and stores them
5-
' in arrComputerSystemInstances.
3+
' This function retrieves the Win32_ComputerSystem instances and stores them in
4+
' arrComputerSystemInstances.
65
'
7-
' The function takes two positional arguments:
8-
' - The first argument (arrComputerSystemInstances) is populated upon success with the
9-
' computer system instances returned from WMI of type Win32_ComputerSystem
10-
' - The second argument (objWMINamespace) is a WMI Namespace connection argument that must
11-
' already be connected to the WMI namespace root\CIMv2
6+
' The function takes one positional argument (arrComputerSystemInstances), which is
7+
' populated upon success with the computer system instances returned from WMI of type
8+
' Win32_ComputerSystem
129
'
1310
' The function returns 0 if Win32_ComputerSystem instances were retrieved successfully, and
1411
' there was one computer system instance (as expected). If no Win32_ComputerSystem objects
@@ -28,7 +25,7 @@ Function GetComputerSystemInstances(ByRef arrComputerSystemInstances)
2825
' ' An error occurred and no Win32_ComputerSystem instances were retrieved
2926
' End If
3027
'
31-
' Version: 1.0.20210619.0
28+
' Version: 1.0.20210624.0
3229
'endregion FunctionMetadata ####################################################
3330

3431
'region License ####################################################

VBScript/02_Upfront_Encapsulated_Code_With_No_Dependencies/GetComputerSystemInstancesUsingWMINamespace.vbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Function GetComputerSystemInstancesUsingWMINamespace(ByRef arrComputerSystemInst
1919
' Example:
2020
' intReturnCode = ConnectLocalWMINamespace(objSWbemServicesWMINamespace, Null, Null)
2121
' If intReturnCode = 0 Then
22-
' ' Successfully connected to the local computer's TPM WMI Namespace
22+
' ' Successfully connected to the local computer's root\CIMv2 WMI Namespace
2323
' intReturnCode = GetComputerSystemInstancesUsingWMINamespace(arrComputerSystemInstances, objSWbemServicesWMINamespace)
2424
' If intReturnCode = 0 Then
2525
' ' The Win32_ComputerSystem instance was retrieved successfully and is available
@@ -32,7 +32,7 @@ Function GetComputerSystemInstancesUsingWMINamespace(ByRef arrComputerSystemInst
3232
' End If
3333
' End If
3434
'
35-
' Version: 1.0.20210619.0
35+
' Version: 1.0.20210624.0
3636
'endregion FunctionMetadata ####################################################
3737

3838
'region License ####################################################

0 commit comments

Comments
 (0)