FSIL_DisconnectRemovableDevice
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Disconnects a virtual or physical removable device from the File Server that was previously connected by FSIL_ConnectRemovableDevice or plugged in. Depending on the parameter flags, the volume is removed at once or File Server sends a notification to the clients before the volume is removed. If the disconnected volume was the primary volume, then the next removable device is used as primary volume. If there is no other removable volume, then no primary volume is set. After a virtual device is disconnected, the appropriate Windows folder is still available.Parameters
- volumeName: Name of the removable volume (without leading ”\”).
- flags:
- Bit 0 = 0: Removes volume at once and sends a Volume Status Response with the name of the volume (parameter volumeName) and with volume status Removed to all clients.
- Bit 0 = 1: 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