[DllImport("shell32.dll", SetLastError=true)]
static extern void SetCurrentProcessExplicitAppUserModelID( [MarshalAs( UnmanagedType.LPWStr )] string AppID );
Declare Function SetCurrentProcessExplicitAppUserModelID Lib "shell32.dll" (<MarshalAs(UnmanagedType.LPWStr)> ByVal appid As String) As Integer
None.
Do you know one? Please contribute it!
AppID must match for all processes and windows of the same application that you wish to be grouped in the same stack on the Windows taskbar.
Be sure to also set the System.AppUserModel.ID property of any shortcuts created for your application to the same value, as well, or they may not be pinnable to the taskbar.