How does the app pin its own shortcut to the taskbar on Windows 11?

XB121 41 Reputation points
2024-04-01T02:32:54.8333333+00:00

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?

Developer technologies | C++
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2024-04-01T06:52:35.2566667+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.