Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 21 Feb 2008 11:43:01 -0800,    group: microsoft.public.platformsdk.shell        back       


Autoplay disable for non-volume device   
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.
date: Thu, 21 Feb 2008 11:43:01 -0800   author:   maverick

Re: Autoplay disable for non-volume device   
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
date: Fri, 22 Feb 2008 08:50:54 +0000   author:   Dean Earley

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us