Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Thu, 29 Sep 2005 15:01:57 +1200,    group: microsoft.public.msdn.magazine        back       


customizing hardware detection service and autoplay   
Hi There,

My company has developed a peripheral device that has a USB interface.

When the user plugs the device into their Windows XP computer I wish to 
let them run a control panel application that I have developed.

I have followed the information provided here: 
http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/default.aspx

The autoplay selection dialog launches, and I can choose my application, 
but clicking OK does not launch my application.

I believe the problem is because the hardware detection service requires 
  additional registry keys to run the application in an interactive 
session (as mentioned in link above).

I have created a registry key HKCR\MyAPPOpen\shell\open\command\ with a 
default value contained the path to my control panel app.

I am having trouble understanding this part of the MSDN mag article:

"
Since the non-volume handlers are invoked from the Shell Hardware 
Detection service, additional COM registration must be performed with 
regard to security. The component as well as the application to be 
invoked must each have an AppID value. The AppID value must specify 
"RunAs" = "Interactive User" so that the component will be created by 
COM on the current console session. Without these settings the COM 
component creation will fail since services do not run in an interactive 
session. The relevant settings shown here are extracted from Sample2.INF:

HKCR\
     CLSID\
         "{EE1F39ED-8202-443a-91A9-DD42E3434EB5}"
             "AppID"="{3308ACA6-E093-4aef-8F81-5AF99D1939D7}"
     
     AppID\
         Sample2.exe"
             "AppID"="{3308ACA6-E093-4aef-8F81-5AF99D1939D7}"
         
         "{3308ACA6-E093-4aef-8F81-5AF99D1939D7}"
             "RunAs"="Interactive User"
"

What GUIDs should I be using and where do I get them from to allow 
hardware detection service to launch my control panel applet?

Thanks in advance,
Carl
date: Thu, 29 Sep 2005 15:01:57 +1200   author:   Carl

Google
 
Web ureader.com


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