WinAPI: call context menu provided by shell extension

Dropbox software provides a shell extension that adds context menu items to all files in a specific folder. One of them generates a public link to view the selected file.

In the C # tool, I want to call this entry without any user interaction. I want to achieve the same behavior as if the user clicked on the context menu item of the selected file.

I know that a shell extension is provided by a DLL, is it possible to make a call to this DLL to achieve the expected behavior?

0
source share
1 answer

IContextMenu (. "" IContextMenu)

, IContextMenu:: GetCommandString , Dropbox , - , , DLL- Dropbox ( DllGetClassObject) (, COM shell), CLSID, COM .

runmenu, /IContextMenu ( , -)

+1

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


All Articles