문제

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