HRESULT
GetChild([in] LONG index,
[out] ISnapshot** childSnapshot,
[out,retval] ULONGLONG* error);
This method returns the specified child snapshot.
VBScript:
Dim childSnapshot
Dim numChildren
Dim err
Dim i
err = snapshot.GetNumChildren(numChildren)
If lib.ErrorIndicatesFailure(err) Thne
' Handle the error...
End If
For i=0 to numChildren-1
err = snapshot.GetChild(i, childSnapshot)
If lib.ErrorIndicatesFailure(err) Then
' Handle the error...
End If
Next