Err..

Folks...

it is possible, but it is horrible™

From Microsoft USB FAQ: http://www.microsoft.com/whdc/device/storage/ usbfaq.mspx

--- blurb ---
The Autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the device must not be marked as a removable media device and the device must contain an Autorun.inf file and a startup application. The removable media device setting is a flag contained within the SCSI Inquiry Data response to the SCSI Inquiry command. Bit 7 of byte 1 (indexed from 0) is the Removable Media Bit (RMB). A RMB set to zero indicates that the device is not a removable media device. A RMB of one indicates that the device is a removable media device. Drivers obtain this information by using the StorageDeviceProperty request. For more information about the SCSI Inquiry command, see the T10 committee located at http://www.t10.org.  For more information about the StorageDeviceProperty, see the STORAGE_DEVICE_DESCRIPTOR storage structure in the Windows DDK, located at http://msdn.microsoft.com/library/default.asp?url=/library/ en-us/storage/hh/storage/structs-general_3c393126-f5c8-47d8- bfb5-6127ce656e9a.xml.asp. For more information on Autorun.inf files see the "Creating an AutoRun-Enabled Application" article located at http:// msdn.microsoft.com/library/en-us/shellcc/platform/shell/ programmersguide/shell_basics/shell_basics_extending/autorun/ autoplay_works.asp.
--- end of blurb ---

I don't really know if you can alter those flags by coding, if so, you could upon first launch of your program, try to make this settings, this way all subsequents (does this word exists in english?) mounts would benefit from autorun... if you need to work on driver, firmware, whatever deeper level than simple coding, then I think you're pretty much lost...


Andre


On Nov 3, 2005, at 8:32 PM, Garrett R. Hylltun wrote:

On Thu, 3 Nov 2005 20:24:43 -0200
Andre Garzia <[EMAIL PROTECTED]> wrote:


does anyone know if autorun.inf will work on usb drives?

It will not work with all removable devices. When I did my work related to this, my very own iPod Mini would not work with the autorun.inf, even though I had windows set to check and run autorun.inf files from all devices possible.

But to my dismay, a beta tester had no problem using the autorun.inf from a usb memory stick. And from resulting discussions with other developers, I found that it was a hit and miss deal, basically depending on hardware issues and os related issues.

So I would say that the autorun.inf would not be reliable in this setting.

-Garrett
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to