Name

EndReplay

Description

HRESULT
EndReplay(LONG options,
          IVixHandle* propertyList,
          ICallback* jobDoneCallback,
          IJob** recordingJob);

This function stops replaying a virtual machine's recording.

Parameters

options
Must be zero.
propertyListHandle
Must be NULL (C++), null (C#), or Nothing (VB).
jobDoneCallback
An ICallback instance that will be called when the operation is complete.
replayJob
Returns an IJob object that describes the state of this asynchronous operation.

Return Value

HRESULT

Remarks

Side Effects

None.

Requirements

VixCOM.h, since VMware Workstation 6.5

Example


VBScript:
' Power off the virtual machine before replaying the recording.
Set job = vm.PowerOff(0, Nothing)
err = job.WaitWithoutResults()
If lib.ErrorIndicatesFailure(err) Then
   ' Handle the error...
End If

Set job = vm.BeginReplay(recording, 0, Nothing, Nothing)
err = job.WaitWithoutResults()
If lib.ErrorIndicatesFailure(err) Then
   ' Handle the error...
End If

' And once you want to stop replaying...

Set job = vm.EndReplay(0, Nothing, Nothing)
err = job.WaitWithoutResults()
If lib.ErrorIndicatesFailure(err) Then
   ' Handle the error...
End If

Set job = Nothing

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