WinXP SP2: how to disable autoplay?

  • Thread starter Thread starter Sergey Kochkarev
  • Start date Start date
S

Sergey Kochkarev

Is there any way to disable autoplay programmatically in Windows XP
SP2? In SP1 we used autorun.inf with a fake (non-existing) application
in open clause. Since SP2 Windows does not process autorun.inf except
for the drive icon. We tried QueryCancelAutoPlay message but this
works only for foreground windows and if user clicks on a task bar,
autoplay starts. This message is not appropriate also because MFC
dialogs can't catch it (they are not real dialogs).

There is a way for disabling autoplay for a drive letter or media
type, but these require rebooting and disables autoplay for other
devices attached to the same letter.

The better solution is to play with group policy in what is related to
autoplay, but MS SDK gives no idea how to make use of group policies
and registry logging show unpredicted results.

Sure SP2 is a bad idea since we got many many new problems, but we
cannot convince our users not to install new bugs as this one.
 
Windows xp sp2 is not a bug.Only you should know how to make it compatible
according to u need.
For stoping autoplay,follow these steps
Click on my computer.
select you cd drive icon.
Right click on it.
Click on properties.
Click on autoplay.
select mixed content.
choose no action.
click on ok
 

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

Back
Top