views:

195

answers:

1

I've writtten a shell extension (guided by The Complete Idiot's Guide to Writing Shell Extensions) which worked as it should until I upgraded to Windows 7(32bit).

Now, the function DragQueryFile

UINT uNumFiles = DragQueryFile(hDrop,0xFFFFFFFF,NULL,0);

returns the right number of selected files until the number is above 16. Then always 16 is returned.

I've tested it in XP(32) and Vista(32), there it works, in Windows7 (32/64) it doesn't.

Any ideas?

Thanks.

A: 

This is by design in Windows 7 - it's an idiotic attempt to improve performance. See:

http://msdn.microsoft.com/en-us/library/dd758093%28VS.85%29.aspx

I'd love to find a workaround; anyone got ideas?

cetcet