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: Mon, 14 Apr 2008 00:27:00 -0700,    group: microsoft.public.platformsdk.shell        back       


how the explorer launches an exe with the dropped file   
Hi,
       I want to know how the explorer launches an exe with the dropped file

--Noviez
date: Mon, 14 Apr 2008 00:27:00 -0700   author:   Noviez

Re: how the explorer launches an exe with the dropped file   
Noviez wrote:
> Hi,
>        I want to know how the explorer launches an exe with the dropped file

Can you be more specific?
At a Wild guess, I'd say ShellExecute with the filename passed as the 
full parameter string.
This is born out by a test app that just shows the param string in a 
messagebox.

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Mon, 14 Apr 2008 10:05:33 +0100   author:   Dean Earley

Re: how the explorer launches an exe with the dropped file   
Noviez wrote:
> I want to know how the explorer launches an exe with the
> dropped file 

The ".exe" file class has a drop handler (registered under HKCR\exefile\shellex\DropHandler) that extracts the CF_HDROP filenames from the data object and passes them on the command line via ShellExecuteEx. An application can also register a drop target under its "App Paths" key, which will be used in preference to the generic drop handler.

-- 
Jim Barry, Microsoft MVP
date: Mon, 14 Apr 2008 11:57:14 +0100   author:   Jim Barry

Re: how the explorer launches an exe with the dropped file   
"Jim Barry" wrote:

> Noviez wrote:
> > I want to know how the explorer launches an exe with the
> > dropped file 
> 
> The ".exe" file class has a drop handler (registered under HKCR\exefile\shellex\DropHandler) that extracts the CF_HDROP filenames from the data object and passes them on the command line via ShellExecuteEx. An application can also register a drop target under its "App Paths" key, which will be used in preference to the generic drop handler.
> 
> -- 
> Jim Barry, Microsoft MVP
> 

hi,
         this was informative.....
         but i have a problem.. i tried launching the same file as cmdline 
directly but the exe didnt processed the file.... its working on files that r 
being dropped on it...
any way to over com this
--Noveiz
date: Mon, 14 Apr 2008 06:13:01 -0700   author:   Noviez

Re: how the explorer launches an exe with the dropped file   
Noviez wrote:
> 
> "Jim Barry" wrote:
> 
>> Noviez wrote:
>>> I want to know how the explorer launches an exe with the
>>> dropped file 
>> The ".exe" file class has a drop handler (registered under HKCR\exefile\shellex\DropHandler) that extracts the CF_HDROP filenames from the data object and passes them on the command line via ShellExecuteEx. An application can also register a drop target under its "App Paths" key, which will be used in preference to the generic drop handler.
>>
>> -- 
>> Jim Barry, Microsoft MVP
>>
> 
> hi,
>          this was informative.....
>          but i have a problem.. i tried launching the same file as cmdline 
> directly but the exe didnt processed the file.... its working on files that r 
> being dropped on it...
> any way to over com this

The easiest way is to run process explorer and see what the command line 
passed to the application was.

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Mon, 14 Apr 2008 15:16:20 +0100   author:   Dean Earley

Google
 
Web ureader.com


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