Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » File Server Interaction Layer (FS IL) » FSIL_DisconnectAllRemovableDevices

FSIL_DisconnectAllRemovableDevices

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long FSIL_DisconnectAllRemovableDevices(dword flags); // form 1
long FSIL_DisconnectAllRemovableDevices(dbNode* fs, dword flags); // form 2

Description

Disconnects all virtual and physical removable devices from the File Server that were previously connected by FSIL_ConnectRemovableDevice or plugged in. Depending on the parameter flags, the volumes are removed at once or File Server sends a notification to the clients before the volume is removed. If one of the connected volumes was the primary volume then no primary volume is set after the volumes are removed. After a virtual device is disconnected, the appropriate Windows folder is still available.

Parameters

  • flags:
    • Bit 0 = 0: Removes all volumes at once and sends a Volume Status Response for every volume with the name of the volume (parameter volumeName) and with volume status Removed to all clients.
    • Bit 0 = 1: For every removable volume: First sends a Volume Status Response with the name of the removable volume (parameter volumeName) and with volume status Preparing for removal to all clients. If within 2 seconds there are no more Volume Status Request with value In Use from a client or if the maximum time for removal is expired then the File Server sends a Volume Status Response with volume status Removed and removes the volume.
  • fs: FS simulation node to apply the function.

Return Values

  • 0: Property has been set successfully.
  • < 0: An error has occurred: IL Error Code

Example