Need AutoPlay, but need to suppress AutoPlay Events Programaticall

G

Guest

Hello,

My company has an application that performs several CD/DVD drive operations.
We need/use AutoPlay to inform the application that media/disk has been
inserted. However, we do not want the CD/DVD Properties dialog to popup when
a disk is inserted.

I have resolved this problem by going to CD/DVD -> Properties -> AutoPlay
(tab) and manually selecting Take No Action for each type of media inserted.
This works fine.

I would like to do the same thing programatically, but seem to be missing
some registry entries. I attempted to do this programatically with:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers
"H:\\\\?\\IDE#CdRomHP_DVD_Writer_300n______________________3.20____#5&2c3016eb&0&0.1.0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}+HandleCDBurningOnArrival"="MSTakeNoAction"

Are there any other user or security issues I should be aware of?

Thanks,
JS
 
O

OShah

"=?Utf-8?B?Sm9obiBILiBTbWl0aA==?=" <John H.
(e-mail address removed)> wrote in
Hello,

My company has an application that performs several CD/DVD drive
operations. We need/use AutoPlay to inform the application that
media/disk has been inserted. However, we do not want the CD/DVD
Properties dialog to popup when a disk is inserted.

I have resolved this problem by going to CD/DVD -> Properties ->
AutoPlay (tab) and manually selecting Take No Action for each type of
media inserted. This works fine.

I would like to do the same thing programatically, but seem to be
missing some registry entries. I attempted to do this programatically
with:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer \Aut
oplayHandlers\UserChosenExecuteHandlers]
"H:\\\\?\\IDE#CdRomHP_DVD_Writer_300n______________________3.20____#5& 2c3
016eb&0&0.1.0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
+HandleCDBurningOnArr
ival"="MSTakeNoAction"

Are there any other user or security issues I should be aware of?

Thanks,
JS

I managed to get Win9x style autoplay where a media change is detected,
but no autorun dialog box pops up.

Apparently in XPSP2, a change was made to autoplay so even if you disabled
autoplay via group policy, a media change would still get detected. Note
that you have to disable autoplay for CD-ROM drives via group policy, and
no other way.

(This is hypothetical. I remember before SP2, media change detection
didn't work, then after SP2, it all of a sudden did. It could be kb817357
that did it).

Is this similar to what you want?


--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe

------------------------------------------------------------------------
 
G

Guest

Thanks for your reply.

I will try suppressing the AutoPlay popup dialog by setting "TakeNoAction"
registry entries for a group instead of an indivual user. Again, I need to
create the entries programtically.

Can you tell me where I can find the registry entries for your suggestion?

Thanks,
JHS



OShah said:
"=?Utf-8?B?Sm9obiBILiBTbWl0aA==?=" <John H.
(e-mail address removed)> wrote in
Hello,

My company has an application that performs several CD/DVD drive
operations. We need/use AutoPlay to inform the application that
media/disk has been inserted. However, we do not want the CD/DVD
Properties dialog to popup when a disk is inserted.

I have resolved this problem by going to CD/DVD -> Properties ->
AutoPlay (tab) and manually selecting Take No Action for each type of
media inserted. This works fine.

I would like to do the same thing programatically, but seem to be
missing some registry entries. I attempted to do this programatically
with:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer \Aut
oplayHandlers\UserChosenExecuteHandlers]
"H:\\\\?\\IDE#CdRomHP_DVD_Writer_300n______________________3.20____#5& 2c3
016eb&0&0.1.0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
+HandleCDBurningOnArr
ival"="MSTakeNoAction"

Are there any other user or security issues I should be aware of?

Thanks,
JS

I managed to get Win9x style autoplay where a media change is detected,
but no autorun dialog box pops up.

Apparently in XPSP2, a change was made to autoplay so even if you disabled
autoplay via group policy, a media change would still get detected. Note
that you have to disable autoplay for CD-ROM drives via group policy, and
no other way.

(This is hypothetical. I remember before SP2, media change detection
didn't work, then after SP2, it all of a sudden did. It could be kb817357
that did it).

Is this similar to what you want?


--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe
 
F

frodo

ask/search over on MSDN: msdn.microsoft.com



FWIW, the shareware app EAC has an option to "disable CD Autostart"
while it is active, so I suspect that it is doable.
 
O

OShah

"=?Utf-8?B?Sm9obiBILiBTbWl0aA==?=" <John H.
(e-mail address removed)> wrote in
Thanks for your reply.

I will try suppressing the AutoPlay popup dialog by setting
"TakeNoAction" registry entries for a group instead of an indivual user.
Again, I need to create the entries programtically.

Can you tell me where I can find the registry entries for your
suggestion?

Thanks,
JHS

If you are taking my suggestion, first of all make sure this is what you
want. You can do so by enabling the option in the security policies
Administrative tool. The settings are located at

Computer Configuration -> Administrative Templates -> System
"Turn off Autoplay"

User Configuration -> Administrative Templates -> System
"Turn off Autoplay"

Once you have verified this is what you want, you can do this
programmatically by setting the following registry keys:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"AutoRun"=dword:00000001
; enable autorun but disable autoplay

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies
\Explorer\NoDriveTypeAutoRun]
"NoDriveTypeAutoRun"=dword:000000b1

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies]
"NoDriveTypeAutoRun"=-
;delete this value if it exists
;repeat delete for all users




To get your suggestion to work, you'll need to find out the name of your
CD drive (in registry form), the list of handlers and (maybe) the list of
CLSIDs in the Running Object Table. These are quite easy to find though.
Apart from that, it looks like what you are doing is okay. Is there any
specific trouble you have?

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_exten
ding/autoplay/autoplay2k_cookbook.asp


--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe

------------------------------------------------------------------------
 
G

Guest

Hello again,

Thanks for the clarification. And actually, that (Oshah 2nd post) is not
what we are trying to do. I am trying to configure the OS so that:

1) Autoplay is enabled
2) All CD/DVD popup dialogs are suppressed (when application is running)

On one hand, we need to use autoplay notifications, BUT we don't want any
popups to appear because our applications will lose focus....which in turn
will disrupt user input.

MS lists a procedure for manipulating autoplay at:

http://msdn.microsoft.com/library/d...cs_extending/autoplay/autoplay2k_cookbook.asp

However, it is difficult to extract the minimum needed for suppression. The
registry entries that I originally listed are proving to be unreliable.

Any other suggestions,
JHS

OShah said:
"=?Utf-8?B?Sm9obiBILiBTbWl0aA==?=" <John H.
(e-mail address removed)> wrote in
Thanks for your reply.

I will try suppressing the AutoPlay popup dialog by setting
"TakeNoAction" registry entries for a group instead of an indivual user.
Again, I need to create the entries programtically.

Can you tell me where I can find the registry entries for your
suggestion?

Thanks,
JHS

If you are taking my suggestion, first of all make sure this is what you
want. You can do so by enabling the option in the security policies
Administrative tool. The settings are located at

Computer Configuration -> Administrative Templates -> System
"Turn off Autoplay"

User Configuration -> Administrative Templates -> System
"Turn off Autoplay"

Once you have verified this is what you want, you can do this
programmatically by setting the following registry keys:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"AutoRun"=dword:00000001
; enable autorun but disable autoplay

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies
\Explorer\NoDriveTypeAutoRun]
"NoDriveTypeAutoRun"=dword:000000b1

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies]
"NoDriveTypeAutoRun"=-
;delete this value if it exists
;repeat delete for all users




To get your suggestion to work, you'll need to find out the name of your
CD drive (in registry form), the list of handlers and (maybe) the list of
CLSIDs in the Running Object Table. These are quite easy to find though.
Apart from that, it looks like what you are doing is okay. Is there any
specific trouble you have?

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_exten
ding/autoplay/autoplay2k_cookbook.asp


--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe
 
O

OShah

Responses inline.

Hello again,

Thanks for the clarification. And actually, that (Oshah 2nd post) is not
what we are trying to do. I am trying to configure the OS so that:

1) Autoplay is enabled

There is a difference between autoplay and autorun, and most of the time
someone thinks they need autoplay, they in fact need autorun. Be sure that
the functionality you need really IS Autoplay.

Autoplay: This is the functionality that launches an appropriate program
whenever autorun has kicked in (the dialogs). Autoplay is dependent on
autorun to work.

Autorun: This sends device change notifications to the shell as soon as a
cdrom issues a media sense change.
2) All CD/DVD popup dialogs are suppressed (when application is running)

On one hand, we need to use autoplay notifications, BUT we don't want
any popups to appear because our applications will lose focus....which
in turn will disrupt user input.

Note that even with all autoplay actions set to no action, there will
still be a momentary loss of focus when the autoplay kicks in. Here's the
reason:

Suppose you had "Take no action" set just for Mixed CDs, but not for Music
CDs. When you insert a MP3 CD, you Want it to open up Media player, but
when a mixed content CD is inserted you want nothing to happen.

Now you insert an unknown CD. What content does it contain? How do you
find out? The answer is to read the CD contents (dircmd it).

The results show you that the CD contains mostly Music, BUT there are
pictures too. This can only be a mixed CD. However to find out this was a
mixed CD and not a Music CD, Autoplay had to DIRCMD the CD.

And it is PRECISELY during this dircmd that you lose focus of your
application. The loss of focus may be momentary, or it could be very long
(it's all about how long the dircmd takes).

Note, if you set all the handlers to take no action, you will get a Win9x
style autoplay, where an explorer opens up with the CDROM drive selected.
(you still will lose focus of course). Is this what you want your
computers to do?
MS lists a procedure for manipulating autoplay at:

http://msdn.microsoft.com/library/default.asp?url=/library/en- us/shellcc/
p
lay/autoplay2k_cookbook.asp

However, it is difficult to extract the minimum needed for suppression.
The registry entries that I originally listed are proving to be
unreliable.

Are you having trouble building the strings for the registry values? Note
that the name of your CD-ROM drive appears in the registry string. So
unless all the computers in your company use HP DVD writers, it's going to
be different each time.

Explorer builds the autoplay strings itself by looking at the
ENUM\IDE\cdrom, the CLSID for the handler, and the action name.

Or has a third party application installed a completely new handler?
Any other suggestions,
JHS



--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe

------------------------------------------------------------------------
 
G

Guest

Hi OShah,

Thanks again for your feedback. Our applications run on Windows XPe.
Regarding this issue, XPe and XP behave the same. One application is
responsible for handling all user input. Our system is essentially a PC.
Normally, a monitor, mouse, and keyboard are not used; all input is entered
through an onboard UI. Occasionally, a user has to perform a lot of text
entry so a keyboard is connected. Here's were the problems begin.

The UI application must have focus in order to process user keyboard input.
(Without any suppression) When a CD/DVD is inserted the CD/DVD Properties
window popups up and steals focus. The UI application has some simple "gain
focus" logic, but what we really want to do is stop all popups from appearing
in the first place, regardless of CD/DVD disk content. Normally, disks will
be blank or contain a generic autorun.inf setup.

To be on the safe side, I attempt to disable (TakeNoAction) popups for all
disk types. This works fine EXCEPT, and there always is an exception right?,
for one scenario.

* When the system applications are running and a disk (of any kind) is
inserted, the system works perfectly. All popups are suppressed.

* When a CD/DVD (of any kind) is inserted and the system applications are
started after the fact, then disks of all types cause the popups to appear.
Even though, I have explicitly stated "TakeNoAction".

So, the powerup/reboot with disk inserted scenario makes the whole setup
problematic.

I'm sure some modifications can be made to the application that handles our
media writing, however, I would like a solution that will suppress popups no
matter what type of disk is inserted or when it is inserted.

And my apologizes, I often use AutoRun and AutoPlay interchangebly. So to
answer your question, we do need the AutoRun notifications, but don't want
any kind of Autoplay popups or other prompts for the user.

Again, ideally I would like to be able to insert a CD/DVD or any type and
not have any user accessible prompts popup. I will retry your original
suggestion on our system and see it suppressing AutoPlay will provide a
viable solution.


Thanks
John H. Smith

PS: Always open to more advice!



OShah said:
Responses inline.

Hello again,

Thanks for the clarification. And actually, that (Oshah 2nd post) is not
what we are trying to do. I am trying to configure the OS so that:

1) Autoplay is enabled

There is a difference between autoplay and autorun, and most of the time
someone thinks they need autoplay, they in fact need autorun. Be sure that
the functionality you need really IS Autoplay.

Autoplay: This is the functionality that launches an appropriate program
whenever autorun has kicked in (the dialogs). Autoplay is dependent on
autorun to work.

Autorun: This sends device change notifications to the shell as soon as a
cdrom issues a media sense change.
2) All CD/DVD popup dialogs are suppressed (when application is running)

On one hand, we need to use autoplay notifications, BUT we don't want
any popups to appear because our applications will lose focus....which
in turn will disrupt user input.

Note that even with all autoplay actions set to no action, there will
still be a momentary loss of focus when the autoplay kicks in. Here's the
reason:

Suppose you had "Take no action" set just for Mixed CDs, but not for Music
CDs. When you insert a MP3 CD, you Want it to open up Media player, but
when a mixed content CD is inserted you want nothing to happen.

Now you insert an unknown CD. What content does it contain? How do you
find out? The answer is to read the CD contents (dircmd it).

The results show you that the CD contains mostly Music, BUT there are
pictures too. This can only be a mixed CD. However to find out this was a
mixed CD and not a Music CD, Autoplay had to DIRCMD the CD.

And it is PRECISELY during this dircmd that you lose focus of your
application. The loss of focus may be momentary, or it could be very long
(it's all about how long the dircmd takes).

Note, if you set all the handlers to take no action, you will get a Win9x
style autoplay, where an explorer opens up with the CDROM drive selected.
(you still will lose focus of course). Is this what you want your
computers to do?
MS lists a procedure for manipulating autoplay at:

http://msdn.microsoft.com/library/default.asp?url=/library/en- us/shellcc/
p
lay/autoplay2k_cookbook.asp

However, it is difficult to extract the minimum needed for suppression.
The registry entries that I originally listed are proving to be
unreliable.

Are you having trouble building the strings for the registry values? Note
that the name of your CD-ROM drive appears in the registry string. So
unless all the computers in your company use HP DVD writers, it's going to
be different each time.

Explorer builds the autoplay strings itself by looking at the
ENUM\IDE\cdrom, the CLSID for the handler, and the action name.

Or has a third party application installed a completely new handler?
Any other suggestions,
JHS



--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe
 
O

OShah

Hi OShah,

Thanks again for your feedback. Our applications run on Windows XPe.
Regarding this issue, XPe and XP behave the same. One application is
responsible for handling all user input. Our system is essentially a PC.
Normally, a monitor, mouse, and keyboard are not used; all input is
entered through an onboard UI. Occasionally, a user has to perform a lot
of text entry so a keyboard is connected. Here's were the problems
begin.

The UI application must have focus in order to process user keyboard
input. (Without any suppression) When a CD/DVD is inserted the CD/DVD
Properties window popups up and steals focus. The UI application has
some simple "gain focus" logic, but what we really want to do is stop
all popups from appearing in the first place, regardless of CD/DVD disk
content. Normally, disks will be blank or contain a generic autorun.inf
setup.

To be on the safe side, I attempt to disable (TakeNoAction) popups for
all disk types. This works fine EXCEPT, and there always is an exception
right?, for one scenario.

* When the system applications are running and a disk (of any kind) is
inserted, the system works perfectly. All popups are suppressed.

* When a CD/DVD (of any kind) is inserted and the system applications
are started after the fact, then disks of all types cause the popups to
appear. Even though, I have explicitly stated "TakeNoAction".

According to this, it sounds as if your system application is suffering
from a race condition bug, where it must start up before auto-insert
notifications kick in (otherwise, you won't get focus).

Autorun and Autoplay (in XP) are based on the Shell Hardware Detection
service. To make your application startup before any autoplay kicks in,
what you can do is set the startup of ShellHDW to Manual startup, then
start it yourself once you are initialised.

This way, there will be no autoplay notifications until your app has
initialized. BTW, Are you running as a service?
So, the powerup/reboot with disk inserted scenario makes the whole setup
problematic.

That's strange, if you leave the disk inside a computer during boot up,
the system won't attempt to autorun it or autoplay it. The only time it
will autoplay is after the shell has started, And the ShellHDW service is
started.

Are you referring to the short period of time between the shell starting
up and the startup group of apps being processed?
I'm sure some modifications can be made to the application that handles
our media writing, however, I would like a solution that will suppress
popups no matter what type of disk is inserted or when it is inserted.

And my apologizes, I often use AutoRun and AutoPlay interchangebly. So
to answer your question, we do need the AutoRun notifications, but don't
want any kind of Autoplay popups or other prompts for the user.

Again, ideally I would like to be able to insert a CD/DVD or any type
and not have any user accessible prompts popup. I will retry your
original suggestion on our system and see it suppressing AutoPlay will
provide a viable solution.


Thanks
John H. Smith

PS: Always open to more advice!

--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe

------------------------------------------------------------------------
 
G

Guest

Hello again,

Yes, the Shell Hardware Detection service is running on our WinXpe image,
but we appear not to use its services. I set the service to Manual (rebooted)
and our software runs the same even when the service has not been started.
The Disk-In-First behavior is the same even when the service (Shell Hardware)
is not active.

Unfortunately our applications are not running as services. Will work on
some things this weekend and keep you posted.

Thanks again,
JHS



OShah said:
Hi OShah,

Thanks again for your feedback. Our applications run on Windows XPe.
Regarding this issue, XPe and XP behave the same. One application is
responsible for handling all user input. Our system is essentially a PC.
Normally, a monitor, mouse, and keyboard are not used; all input is
entered through an onboard UI. Occasionally, a user has to perform a lot
of text entry so a keyboard is connected. Here's were the problems
begin.

The UI application must have focus in order to process user keyboard
input. (Without any suppression) When a CD/DVD is inserted the CD/DVD
Properties window popups up and steals focus. The UI application has
some simple "gain focus" logic, but what we really want to do is stop
all popups from appearing in the first place, regardless of CD/DVD disk
content. Normally, disks will be blank or contain a generic autorun.inf
setup.

To be on the safe side, I attempt to disable (TakeNoAction) popups for
all disk types. This works fine EXCEPT, and there always is an exception
right?, for one scenario.

* When the system applications are running and a disk (of any kind) is
inserted, the system works perfectly. All popups are suppressed.

* When a CD/DVD (of any kind) is inserted and the system applications
are started after the fact, then disks of all types cause the popups to
appear. Even though, I have explicitly stated "TakeNoAction".

According to this, it sounds as if your system application is suffering
from a race condition bug, where it must start up before auto-insert
notifications kick in (otherwise, you won't get focus).

Autorun and Autoplay (in XP) are based on the Shell Hardware Detection
service. To make your application startup before any autoplay kicks in,
what you can do is set the startup of ShellHDW to Manual startup, then
start it yourself once you are initialised.

This way, there will be no autoplay notifications until your app has
initialized. BTW, Are you running as a service?
So, the powerup/reboot with disk inserted scenario makes the whole setup
problematic.

That's strange, if you leave the disk inside a computer during boot up,
the system won't attempt to autorun it or autoplay it. The only time it
will autoplay is after the shell has started, And the ShellHDW service is
started.

Are you referring to the short period of time between the shell starting
up and the startup group of apps being processed?
I'm sure some modifications can be made to the application that handles
our media writing, however, I would like a solution that will suppress
popups no matter what type of disk is inserted or when it is inserted.

And my apologizes, I often use AutoRun and AutoPlay interchangebly. So
to answer your question, we do need the AutoRun notifications, but don't
want any kind of Autoplay popups or other prompts for the user.

Again, ideally I would like to be able to insert a CD/DVD or any type
and not have any user accessible prompts popup. I will retry your
original suggestion on our system and see it suppressing AutoPlay will
provide a viable solution.


Thanks
John H. Smith

PS: Always open to more advice!

--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe
 
G

Guest

It looks like the solution to my issue is far-far-far simplier than I
expected. It appears that:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun (Value=255)

Is sufficient to suppress all popups and allow our software to perform its
media tasks. Need to run more tests, but this looks like a winner.



OShah said:
Hi OShah,

Thanks again for your feedback. Our applications run on Windows XPe.
Regarding this issue, XPe and XP behave the same. One application is
responsible for handling all user input. Our system is essentially a PC.
Normally, a monitor, mouse, and keyboard are not used; all input is
entered through an onboard UI. Occasionally, a user has to perform a lot
of text entry so a keyboard is connected. Here's were the problems
begin.

The UI application must have focus in order to process user keyboard
input. (Without any suppression) When a CD/DVD is inserted the CD/DVD
Properties window popups up and steals focus. The UI application has
some simple "gain focus" logic, but what we really want to do is stop
all popups from appearing in the first place, regardless of CD/DVD disk
content. Normally, disks will be blank or contain a generic autorun.inf
setup.

To be on the safe side, I attempt to disable (TakeNoAction) popups for
all disk types. This works fine EXCEPT, and there always is an exception
right?, for one scenario.

* When the system applications are running and a disk (of any kind) is
inserted, the system works perfectly. All popups are suppressed.

* When a CD/DVD (of any kind) is inserted and the system applications
are started after the fact, then disks of all types cause the popups to
appear. Even though, I have explicitly stated "TakeNoAction".

According to this, it sounds as if your system application is suffering
from a race condition bug, where it must start up before auto-insert
notifications kick in (otherwise, you won't get focus).

Autorun and Autoplay (in XP) are based on the Shell Hardware Detection
service. To make your application startup before any autoplay kicks in,
what you can do is set the startup of ShellHDW to Manual startup, then
start it yourself once you are initialised.

This way, there will be no autoplay notifications until your app has
initialized. BTW, Are you running as a service?
So, the powerup/reboot with disk inserted scenario makes the whole setup
problematic.

That's strange, if you leave the disk inside a computer during boot up,
the system won't attempt to autorun it or autoplay it. The only time it
will autoplay is after the shell has started, And the ShellHDW service is
started.

Are you referring to the short period of time between the shell starting
up and the startup group of apps being processed?
I'm sure some modifications can be made to the application that handles
our media writing, however, I would like a solution that will suppress
popups no matter what type of disk is inserted or when it is inserted.

And my apologizes, I often use AutoRun and AutoPlay interchangebly. So
to answer your question, we do need the AutoRun notifications, but don't
want any kind of Autoplay popups or other prompts for the user.

Again, ideally I would like to be able to insert a CD/DVD or any type
and not have any user accessible prompts popup. I will retry your
original suggestion on our system and see it suppressing AutoPlay will
provide a viable solution.


Thanks
John H. Smith

PS: Always open to more advice!

--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe
 
O

OShah

It looks like the solution to my issue is far-far-far simplier than I
expected. It appears that:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveT
ypeAutoRun (Value=255)

Is sufficient to suppress all popups and allow our software to perform
its media tasks. Need to run more tests, but this looks like a winner.

Ah, my original suggestion. You can learn all about that registry value here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extendin
g/autorun/autoplay_intro.asp

Let us know about your tests.

--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe

------------------------------------------------------------------------
 
G

Guest

Hey again,

I like this solution for a number of reasons. Programmatically, it's
simpler and more reliable. The other method (Assign TakeNoAction to popups)
behaved differently on the master HDD and the clone drives created from it.
I'm sure it has something to do with users and permissions. I need to test
against several DVD drives and I'll let you know!

Thanks for all of your help!

OShah said:
It looks like the solution to my issue is far-far-far simplier than I
expected. It appears that:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveT
ypeAutoRun (Value=255)

Is sufficient to suppress all popups and allow our software to perform
its media tasks. Need to run more tests, but this looks like a winner.

Ah, my original suggestion. You can learn all about that registry value here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extendin
g/autorun/autoplay_intro.asp

Let us know about your tests.

--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe
 

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