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?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,908 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,720 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 85,126 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.