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

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) Then
   ' 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

Copyright (C) 2007-2011 VMware, Inc. All rights reserved.