Based on the guidelines provided in this article http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/ I have developed an Autoplay mechanism for my USB device ( non-volume). This is targetted for windows xp and higher. So In a nutshell this is what I have added in the registry to get this functionality. 1. I have added a GUID under the HKEY_LOCAL_MACHINE\SOFTWAREMicrosoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{MY-GUID-HERE} DeviceHandlers [REG_SZ] = MyOwnHandler I would further want to entrirely disable this feature for the device. I was wondering if there was a programatic way of doing this . 1. know of a way where I can disable this functionality by deleting the registry keys.However this might not work for non-admin users . Is there a different recommendation for this purpose 2. The article above explains a mechanism to disable autoplay when the exe is running in the foreground by registering in the ROT . However in my case I would want to enable or disable the Autoplay notification window without the exe running in the foreground.
maverick wrote: > Based on the guidelines provided in this article > http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/ > I have developed an Autoplay mechanism for my USB device ( non-volume). This > is targetted for windows xp and higher. > > > So In a nutshell this is what I have added in the registry to get this > functionality. > 1. I have added a GUID under the > HKEY_LOCAL_MACHINE\SOFTWAREMicrosoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{MY-GUID-HERE} > DeviceHandlers [REG_SZ] = MyOwnHandler > > I would further want to entrirely disable this feature for the device. I was > wondering if there was a programatic way of doing this . > > 1. know of a way where I can disable this functionality by deleting the > registry keys.However this might not work for non-admin users . Is there a > different recommendation for this purpose > > 2. The article above explains a mechanism to disable autoplay when the exe > is running in the foreground by registering in the ROT . However in my case I > would want to enable or disable the Autoplay notification window without the > exe running in the foreground. If there is no other way, you could have a stub executable that determines whether to do anything else or not, then pass ti on if needed, otherwise, just exit. This could read a user specific value. -- Dean Earley (dean.earley@icode.co.uk) i-Catcher Development Team iCode Systems