From MSDN, with TaskbarManager class : Pin your app to the taskbar
How does the app pin its own shortcut to the taskbar on Windows 11?
XB121
41
Reputation points
I want my app can pin its shortcut on the taskbar after app launched for the first time on Windows 11.
And I found the command "taskbarpin" does not work on Windows 11.
Is there any other way to do this?