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, 31 Jul 2008 16:52:23 +1000,    group: microsoft.public.platformsdk.shell        back       


Problem trapping SHOpenFolderAndSelectItems   
Hi,

Our app is an "Explorer replacement" and we trap most calls to Explorer via 
a Shell Execute Hook.

However we're having trouble trapping the "selection" information from calls 
to SHOpenFolderAndSelectItems.

It seems to us that this calls ShellExecuteEx with lpVerb set to NULL and 
lpIDList set to the IDL of the target folder. However we can't see any way 
that the information about which child items to select is passed through.

Is this done via a DDE message or is it done via an internal shell 
mechanism?

Thanks,
Jon
date: Thu, 31 Jul 2008 16:52:23 +1000   author:   Jon Potter am

Re: Problem trapping SHOpenFolderAndSelectItems   
Jon Potter wrote:
> It seems to us that this calls ShellExecuteEx with lpVerb set to NULL
> and lpIDList set to the IDL of the target folder. However we can't
> see any way that the information about which child items to select is
> passed through. 

SHOpenFolderAndSelectItems looks for an existing shell window (using IShellWindows::FindWindowSW). If it can't find one, it creates a new one (using ShellExecuteEx) and waits for it to appear. Then it queries for IWebBrowserApp, calls get_Document, queries the document object for IShellFolderViewDual, and finally calls SelectItem.

-- 
Jim Barry, Microsoft MVP
date: Thu, 31 Jul 2008 11:39:35 +0100   author:   Jim Barry

Re: Problem trapping SHOpenFolderAndSelectItems   
Thanks very much Jim!
date: Sun, 3 Aug 2008 08:57:49 +1000   author:   Jon Potter am

Google
 
Web ureader.com


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