(help)(about usb auto run)

M

mikehan

I have a question about USB auto-run, Last time I find the following
information from microsoft site:

"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."

Out product is a standard UDisk and which can be identifyed by
Windows98,2000&XP, I modified the inquiry data by this text means. But my
autorun.exe can't be execute. and on WinXP, the usb driver icon has changed,
my autorun.inf is following:

[autorun]
open=autorun.exe
icon=PC Link Service.ico

my inquiry data: {0x00, 0x00,... In this situation, the usb device can't be
seen at the windows explore.
my inquiry data: {0x00, 0x80,... In this situation, the icon can specified
in autorun.inf can be seen, but autorun.exe can't be executed.

Please help me, I'm looking forward to your response. Thank you very much.
 
R

Richard

I surely do not understand why Autorun would not work on removable media,
since that is where it is mainly used today.
Are CD's not removable? I heard there were a few challenges when using it
with USB Storage though.

Anyway, I am very interested in what you find out and what the solution is.
I would like to do the same.

Richard
 
S

Slobodan Brcin \(eMVP\)

Hi,

Is this SP1 or SP2 there were some significant changes in OS regarding the autorun for SP2. This you should look up is new SDK look
for changes done in SP2 regarding the autorun feature.
my inquiry data: {0x00, 0x00,... In this situation, the usb device can't be
seen at the windows explore.
my inquiry data: {0x00, 0x80,... In this situation, the icon can specified
in autorun.inf can be seen, but autorun.exe can't be executed.

You don't see volume letters on fixed disk?
If so you will have to go to DiskManager and to partiton format disk and to assign volume letters to each partition.

If you are interested in Safely Remove hardware option then it should be there regardles of RM bit. If it is not then some of your
inf files has set NonRemovable overide flag to 1 that prevent device from showing in safe remove tray. Search for it in registry.

Regards,
Slobodan




mikehan said:
I have a question about USB auto-run, Last time I find the following
information from microsoft site:

"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."

Out product is a standard UDisk and which can be identifyed by
Windows98,2000&XP, I modified the inquiry data by this text means. But my
autorun.exe can't be execute. and on WinXP, the usb driver icon has changed,
my autorun.inf is following:

[autorun]
open=autorun.exe
icon=PC Link Service.ico

my inquiry data: {0x00, 0x00,... In this situation, the usb device can't be
seen at the windows explore.
my inquiry data: {0x00, 0x80,... In this situation, the icon can specified
in autorun.inf can be seen, but autorun.exe can't be executed.

Please help me, I'm looking forward to your response. Thank you very much.
 
K

KM

How about check the NoDriveTypeAutoRun policy?
http://www.microsoft.com/resources/...s/2000/server/reskit/en-us/regentry/93502.asp

--
Regards,
KM

I surely do not understand why Autorun would not work on removable media, since that is where it is mainly used today.
Are CD's not removable? I heard there were a few challenges when using it with USB Storage though.

Anyway, I am very interested in what you find out and what the solution is. I would like to do the same.

Richard


mikehan said:
I have a question about USB auto-run, Last time I find the following
information from microsoft site:

"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."

Out product is a standard UDisk and which can be identifyed by
Windows98,2000&XP, I modified the inquiry data by this text means. But my
autorun.exe can't be execute. and on WinXP, the usb driver icon has changed,
my autorun.inf is following:

[autorun]
open=autorun.exe
icon=PC Link Service.ico

my inquiry data: {0x00, 0x00,... In this situation, the usb device can't be
seen at the windows explore.
my inquiry data: {0x00, 0x80,... In this situation, the icon can specified
in autorun.inf can be seen, but autorun.exe can't be executed.

Please help me, I'm looking forward to your response. Thank you very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top