VirtualBox

Ignore:
Timestamp:
Jul 20, 2010 2:11:51 PM (14 years ago)
Author:
vboxsync
Message:

Main: add option to UnregisterMachine() to automatically nuke all attached media

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r30681 r30929  
    162162        machine->COMGETTER(Id)(uuid.asOutParam());
    163163        machine = NULL;
    164         CHECK_ERROR(a->virtualBox, UnregisterMachine(uuid, machine.asOutParam()));
     164        SafeArray<BSTR> abstrFiles;
     165        CHECK_ERROR(a->virtualBox, UnregisterMachine(uuid,
     166                                                     false /* fDetachMedia */,
     167                                                     ComSafeArrayAsOutParam(abstrFiles),
     168                                                     machine.asOutParam()));
    165169        if (SUCCEEDED(rc) && machine && fDelete)
    166170            CHECK_ERROR(machine, DeleteSettings());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette