Name
GetChild
Description
HRESULT
GetChild([in] LONG index,
[out] ISnapshot** childSnapshot,
[out,retval] ULONGLONG* error);
This
method
returns the specified child snapshot.
Parameters
- index
-
Index into the list of snapshots.
- childSnapshotHandle
-
(output) A ISnapshot object for the parent of the specified snapshot.
- error
-
The error code returned by the operation.
Return Value
HRESULT
Remarks
- Snapshots are indexed from 0 to n-1, where n is the number of child
snapshots.
Use the function
Snapshot::GetNumChildren()
to get the
value of n.
Side Effects
None.
Requirements
VixCOM.h, since VMware Workstation 6.0
Example
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