Вопрос

I want to be able to show the SendTo menu on a file list inside my program and then execute the SendTo shortcut or droptarget on the chosen file. It seems I can ShellExecute a .lnk file, but I need to know how to simulate dropping a specified file onto a droptarget, such as "Mail Recipient"

Это было полезно?

Решение

using an "send to" menu entry is not more than calling the lnk with the selected file as additional parameter.

so you just have to shellexecute the .lnk and give your target

ShellExecute( 0, "open", lnkPath, targetfilePath, NULL, SW_SHOW );
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top