$err = VMEndRecording($vmHandle, $options, $propertyListHandle);
This function stops recording a virtual machine's activity.
use VMware::Vix::Simple; use VMware::Vix::API::Constants;since VMware Workstation 6.5
my $err;
my $snapshotHandle;
my $vmHandle;
($err, $snapshotHandle) = VMBeginRecording($vmHandle, "recording 2",
"description of recording 2",
0, VIX_INVALID_HANDLE);
die "VMBeginRecording() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;
# wait for some acitvity to happen, then stop recording
$err = VMEndRecording($vmHandle, 0, VIX_INVALID_HANDLE);
die "VMEndRecording() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;