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: Fri, 9 Mar 2007 17:24:41 +0100,    group: microsoft.public.platformsdk.ui_shell        back       


Retrieve selected files on the Windows Desktop   
Hello,

    I am working on an application to process some actions when the user 
press a special key. The problem is that i have to retrieve the selected 
item on the desktop when the user press the button.

I retrieve the display text of each selected file/directory making some 
WindoFindEx ( "ProgMan->ShellDLL_DefView->SysListView32) and send t othe 
Listbox the LVM_GETTEXT message.

But this system not work to have to entire filename and not only the disply 
name ( because the desktop hide the know extension in the name). For example 
the file mydocument.doc is displayed on the desktop like "mydocument"

On windows XP, it work retrieving the lParam of the LV_ITEM because this 
parameter represent the ITEMIDLIST of the item. With this information is 
easy to get the fullpathname with the SHGetPathFormIDList function.

My problem is on Windows Vista because the lParam returned is NULL.

Anyone can help me ?

Thx,

Fred
date: Fri, 9 Mar 2007 17:24:41 +0100   author:   Frederic Bocquet

Google
 
Web ureader.com


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