MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setWindowsAppUserModelId

Function setWindowsAppUserModelId

app/src/Platform/AppPlatform.cpp:250–257  ·  view source on GitHub ↗

* @brief Pins the process to a stable Windows AppUserModelID. */

Source from the content-addressed store, hash-verified

248 * @brief Pins the process to a stable Windows AppUserModelID.
249 */
250static 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

Callers 1

prepareEnvironmentFunction · 0.85

Calls 2

shortcutIdentityHashFunction · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected