-
b2c03171
by Robert Gerigk at 2026-04-14T22:01:20+02:00
include: Add identity string length constants to appmodel.h.
Add APPLICATION_USER_MODEL_ID, PACKAGE_RELATIVE_APPLICATION_ID,
and all PACKAGE_* length constants from the Windows SDK.
APPLICATION_USER_MODEL_ID and PACKAGE_RELATIVE_APPLICATION_ID
lengths include space for the NULL terminator. PACKAGE_* lengths
do not.
Signed-off-by: Jan Robert Gerigk <Robert-Gerigk@online.de>
-
e0acd9aa
by Robert Gerigk at 2026-04-14T22:01:20+02:00
shcore: Implement Set/GetCurrentProcessExplicitAppUserModelID.
Implement both functions using a process-wide static variable
protected by a critical section. SetCurrentProcessExplicitAppUserModelID
validates the input (rejects NULL and strings longer than 127
characters) and stores a CoTaskMemAlloc'd copy.
GetCurrentProcessExplicitAppUserModelID returns a CoTaskMemAlloc'd
copy to the caller.
Signed-off-by: Jan Robert Gerigk <Robert-Gerigk@online.de>
-
aa91eeb3
by Robert Gerigk at 2026-04-14T22:01:20+02:00
shcore/tests: Add tests for Set/GetCurrentProcessExplicitAppUserModelID.
Test max length validation (127 chars = S_OK, 128 chars = E_INVALIDARG),
set/get round-trip, and ID update behavior.
Signed-off-by: Jan Robert Gerigk <Robert-Gerigk@online.de>