HRESULT GetCurrentSnapshot([out] ISnapshot** snapshot, [out,retval] ULONGLONG* error);
This function returns the handle of the current active snapshot belonging to the virtual machine referenced by the IVM object against which this method is invoked.
Dim err Dim snapshot err = vm.GetCurrentSnapshot(snapshot) If lib.ErrorIndicatesFailure(err) Then ' Handle error... End If ' remove/revert, otherwise use the snapshot