HRESULT EndReplay(LONG options, IVixHandle* propertyList, ICallback* jobDoneCallback, IJob** recordingJob);
This function stops replaying a virtual machine's recording.
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