Thanks to you, Dean and Christian, Actually, I'm already using what Dean suggested, that is MacUSBDeviceMBS and WinUSBDeviceMBS for checking the USB bus, and, in addition, MacUSBNotificationMBS and WinUSBNotificationMBS in order to detect an insertion (or remove).
I found these workarounds for Removable and Writeable infos: - Removable: DarwinMediaInfoMBS on Mac, WindowsDiskInfoMBS on Windows, - Writeable: Simply the Xojo FolderItem.IsWriteable property! As I have to get a FolderItem on a specific file in the volume, I just need to know if this file is writeable or not. This matches my need. Thank you for your help. Regards Jean-Luc Arnaud Le 02/06/2016 à 20:24, Christian Schmitz a écrit : >> Am 02.06.2016 um 13:11 schrieb Jean-Luc Arnaud <[email protected]>: >> >> Hi all, >> >> Passing Path parameter (BSD name or Mount Point on Mac, letter on >> Windows) or Xojo volume number or path, what MBS function may return >> infos, in particular IsWritable, Vid, Pid and SN? > Well, I think that is not easy. > We may have classes with various helper functions, but not all things work > together directly. > > For Windows please review the example project "USB Stick to Drive Letter". > For Mac check the DADiskMBS class. It may help to check where a disk came > from. > > CarbonApplicationEventsMBS VolumeMounted event tells you when disk arrived. > or NSWorkspaceMBS NSWorkspaceDidMountNotification. > > Sincerely > Christian > _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
