Get selected items from explorer using C# .NET 3.5
Posted
by ghawkes
on Stack Overflow
See other posts from Stack Overflow
or by ghawkes
Published on 2010-03-16T19:45:00Z
Indexed on
2010/04/18
22:53 UTC
Read the original article
Hit count: 152
I am writing a .NET 3.5 WPF application in C#. This application needs to be able to get the selected items out of Windows explorer when it is in the foreground.
I already have the code working that handles a global Windows hotkey and then checks to see if the foreground IntPtr is from explorer. If so, I am able to obtain the System.Diagnostics.Process object that maps to explorer.
At this point, I would like to obtain the list of selected items from explorer. Perhaps there is a Windows API function that I could pinvoke to do this?
Thank you,
- G
© Stack Overflow or respective owner