> The only thing I found in the doc is QueryBSDName, but this seems to not > work properly. It often returns an empty string, and sometimes the > actual BSD name. Timing issue? Replying to myself : Yes, it's a timing problem. I think the device is not ready when the QueryBSDName function tries to get the BSD name. Using a For..Next loop with a DelayMBS 0.1, it needs an average of 12 loops (that is, 1.2 seconde) to get the actual BSD name.
Christian, maybe you could modify this function in order to wait for the device to be ready before quering its BSDName. It could have a Boolean parameter (WaitForReady) : True, the function waits for the device to be ready (with a timeout, of course!), false, it does not wait. So, now, I have to translate a BSD ref into a Mac OS one, probably using a Shell command. Jean-Luc Arnaud Le 31/03/2015 17:48, Jean-Luc Arnaud a écrit : > I didn't find nothing in the Blog posts. > USB plugin examples do not demonstrate such a thing. > The only thing I found in the doc is QueryBSDName, but this seems to not > work properly. It often returns an empty string, and sometimes the > actual BSD name. Timing issue? > > TIA for your help. > > Jean-Luc Arnaud > > Le 31/03/2015 17:08, Christian Schmitz a écrit : >>> Am 31.03.2015 um 16:34 schrieb Jean-Luc Arnaud <[email protected]>: >>> >>> Hello, >>> >>> I'm wondering how to get a folderitem of a newly inserted USB device >>> (stick), after receiving a Mac or WinUSBNotificationMBS. >>> Could the DeviceHandle (on Mac) or the NotifyHandle (on Windows) be >>> useful for that? >> I remember I had that somewhere. >> Did you look through all examples, blog posts and documentation? >> >> Sincerely >> Christian >> > _______________________________________________ > Mbsplugins_monkeybreadsoftware.info mailing list > [email protected] > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info > > _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
