Domanda

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"

È stato utile?

Soluzione

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 );
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top