views:

218

answers:

1

When the user selects file(s) or/ and folder(s) , I want to know the names of the selected file(s) or/and folder(s) programmatically.

I think that if I send the message lvm_selected to the explorer window, it might return me the selected item.

But as this is just a thought, it would be nice if anyone can help me out it in letting me know the proper way .

I would prefer this in C#, but C++ shall also be fine.

Thanks in advance .

A: 

http://www.codeproject.com/KB/shell/AutomateShellWindow.aspx Note the method is broken by UAC. Write a BHO if your customer have UAC on.

Sheng Jiang 蒋晟