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