* @brief Pins the process to a stable Windows AppUserModelID. */
| 248 | * @brief Pins the process to a stable Windows AppUserModelID. |
| 249 | */ |
| 250 | static void setWindowsAppUserModelId(const QString& shortcutPath) |
| 251 | { |
| 252 | QString aumid = QStringLiteral("AlexSpataru.SerialStudio"); |
| 253 | if (!shortcutPath.isEmpty()) |
| 254 | aumid += QStringLiteral(".Shortcut.") + AppPlatform::shortcutIdentityHash(shortcutPath); |
| 255 | |
| 256 | SetCurrentProcessExplicitAppUserModelID(reinterpret_cast<LPCWSTR>(aumid.utf16())); |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * @brief Enables SeIncreaseWorkingSetPrivilege (present in every user token) so the minimum |
no test coverage detected