IContextMenu.InvokeCommand() no longer works asynchronous on Windows 7


  • Hi there.

    I used to execute shell operations like copy, paste or delete on files and folders using IContextMenu.InvokeCommand() in my application for years. Usually these operations were executed asynchronously, but on Windows 7 InvokeCommand() is blocking my application while the operation is executed. I verified that the same executebale behaves differently on Windows XP, here the Windows Shell seems to spin off a seperate thread for the operation. Adding CMIC_MASK_ASYNCOK to CMINVOKECOMMANDINFO.fMask does not make any difference.

    Does anybody know a trick how to get back the old async behavior of Windows XP also on Windows 7?

    Best regards,


    Wednesday, April 20, 2011 2:16 PM

All replies