Shell extension: DragQueryFile returns a maximum of 16 (on Windows 7)

I typed in a shell extension (using the Complete Guide for Idiots on Writing Shell Extensions ), which worked as it should, until I upgraded to Windows 7 (32 bit).

Now the DragQueryFile function

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

returns the correct number of selected files until the number is greater than 16. Then it always returns 16.

I tested it in XP (32) and Vista (32), it works there, in Windows7 (32/64) it is not.

Any ideas?

Thank.

+3
source share
2 answers

IShellExtInit.Initialize() IContextMenu.InvokeCommand(). . Initialize(), , 16.

+3

, 16 , , , MultipleInvokePromptMinimum. , invokeCommand. , , initialize, . , .

+1

Source: https://habr.com/ru/post/1735053/


All Articles