Name

VixSnapshot_GetChild

Description

VixError
VixSnapshot_GetChild(VixHandle parentSnapshotHandle,
                     int index,
                     VixHandle *childSnapshotHandle)

This function returns the specified child snapshot.

Parameters

parentSnapshotHandle
A snapshot handle.
index
Index into the list of snapshots.
childSnapshotHandle
(output) A handle to the child snapshot.

Return Value

VixError

Remarks

Side Effects

None.

Requirements

vix.h, since VMware Workstation 6.0

Example

VixHandle parentSnapshot;
VixHandle childSnapshot;
int numChildren;
VixError err;
int i;

err = VixSnapshot_GetNumChildren(parentSnapshotHandle, &numChildren);
printf("the snapshot has %d child snapshots\n", numChildren);
for (i = 0; i < numChildren; i++) {
    err = VixSnapshot_GetChild(parentSnapshotHandle, i, &childSnapshot);
}

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