I'm trying to write a Windows shell extension in C# using COM Interop and I'm running into some issues retrieving the list of files which were selected. My understanding is that I'm supposed to use DragQueryFile based on the data I retrieve from calling IDataObject.GetData on the argument passed to Initialize. However, the call to GetData returns a value less than zero indicating an error and I always get 0 as the return value to DragQueryFile. My source code is available at
http://www.andrew.cmu.edu/user/jsd1/code.zip. I greatly appreciate any help you can provide!
Thanks,
Jeff