Is there a way to handle "Pin this program to taskbar" user action in the code? Is there such an event in Taskbar API? My search didn't give any results.
The reason behind this: my X.exe is launched through some other Y.exe executable, and if user clicks 'Pin' while Y.exe is running, I want to change this shortcut to the actual X.exe.
Any ideas? Thanks.