$err = VMEndReplay($vmHandle, $options, $propertyListHandle);
This function stops replaying a virtual machine's recording.
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.
Must be zero.
Must be VIX_INVALID_HANDLE.
$err. The error code returned by the operation. For returned values, see Topics > Error Codes.
- Record-replay functionality has been deprecated and this function may be removed from future versions of the VIX API.
- This operation only works on a virtual machine that is replaying.
- This function will cause the virtual machine to "go live"; it will
resume normal execution, continuing on from the last state
that was replayed from the recording.
- This function is not supported when using the
since VMware Workstation 6.5
# find the appropriate snapshot handle to replay
# start the replay
$err = VMBeginReplay($vmHandle, $snapshotHandle, 0, VIX_INVALID_HANDLE);
die "VMBeginReplay() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;
# wait for some activity to happen, then stop replaying
$err = VMEndReplay($vmHandle, 0, VIX_INVALID_HANDLE);
die "VMEndReplay() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;