Name

VMGetCurrentSnapshot

Description

($err, $snapshotHandle) = VMGetCurrentSnapshot($vmHandle);

This function returns the handle of the current active snapshot belonging to the virtual machine referenced by vmHandle.

Parameters

vmHandle
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.

Return Value

$err. The error code returned by the operation. For returned values, see Topics > Error Codes.

$snapshotHandle. The handle to the snapshot.

Remarks

Side Effects

None.

Requirements

use VMware::Vix::Simple;
use VMware::Vix::API::Constants;
since VMware Workstation 6.0

Example

my $err;
my $snapshotHandle;

($err, $snapshotHandle) = VMGetCurentSnapshot($vmHandle);

# remove/revert, otherwise use the snapshot

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