third_party/virtualbox/src/VBox/Main/src-server/MachineImpl.cpp
/**
 * Returns whether the given storage controller is hotplug capable.
 *
 * @returns true if the controller supports hotplugging
 *          false otherwise.
 * @param   enmCtrlType    The controller type to check for.
 */
Returns whether the given storage controller is hotplug capable.
@returns true if the controller supports hotplugging
false otherwise.
@param   enmCtrlType    The controller type to check for.
Returns whether the given storage controller is hotplug capable . @returns true if the controller supports hotplugging false otherwise . @param enmCtrlType The controller type to check for .
bool Machine::i_isControllerHotplugCapable(StorageControllerType_T enmCtrlType)
{
    ComPtr<ISystemProperties> systemProperties;
    HRESULT rc = mParent->COMGETTER(SystemProperties)(systemProperties.asOutParam());
    if (FAILED(rc))
        return false;
    BOOL aHotplugCapable = FALSE;
    systemProperties->GetStorageControllerHotplugCapable(enmCtrlType, &aHotplugCapable);
    return RT_BOOL(aHotplugCapable);
}
bool Machine :: i_isControllerHotplugCapable ( StorageControllerType_T enmCtrlType ) { ComPtr < ISystemProperties > systemProperties ; HRESULT rc = mParent -> COMGETTER ( SystemProperties ) ( systemProperties . asOutParam ( ) ) ; if ( FAILED ( rc ) ) return false ; BOOL aHotplugCapable = FALSE ; systemProperties -> GetStorageControllerHotplugCapable ( enmCtrlType , & aHotplugCapable ) ; return RT_BOOL ( aHotplugCapable ) ; }
Returns whether the given storage controller is hotplug capable.
Returns whether the given storage controller is hotplug capable .