123456789101112131415161718192021 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace TaskbarGroups.NativeMethods
- {
- class Shell32
- {
- /// <summary>
- /// 为当前进程设置一个明确的应用程序用户模型 ID
- /// </summary>
- /// <param name="AppID"></param>
- [DllImport("shell32.dll", SetLastError = true)]
- public static extern void SetCurrentProcessExplicitAppUserModelID([MarshalAs(UnmanagedType.LPWStr)] string AppID);
- }
- }
|