From a98bc2ab5078b5e988e7bb41d71175c38cf32a51 Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Wed, 8 Nov 2023 17:37:36 +0530 Subject: [PATCH] feat: added os user error code --- src/Cryptlex.LexActivator/LexActivatorException.cs | 3 +++ src/Cryptlex.LexActivator/LexStatusCodes.cs | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/Cryptlex.LexActivator/LexActivatorException.cs b/src/Cryptlex.LexActivator/LexActivatorException.cs index bc248b0..3ab9ed0 100644 --- a/src/Cryptlex.LexActivator/LexActivatorException.cs +++ b/src/Cryptlex.LexActivator/LexActivatorException.cs @@ -188,6 +188,9 @@ public static string GetErrorMessage(int code) case LexStatusCodes.LA_E_USERS_LIMIT_REACHED: return "The allowed users for this account has reached its limit."; + case LexStatusCodes.LA_E_OS_USER: + return "OS user has changed since activation and the license is user-locked."; + default: return "Unknown error!"; diff --git a/src/Cryptlex.LexActivator/LexStatusCodes.cs b/src/Cryptlex.LexActivator/LexStatusCodes.cs index 5f0a8ca..9688827 100644 --- a/src/Cryptlex.LexActivator/LexStatusCodes.cs +++ b/src/Cryptlex.LexActivator/LexStatusCodes.cs @@ -495,5 +495,11 @@ activation has been disallowed in the container. */ public const int LA_E_USERS_LIMIT_REACHED = 103; + /* + CODE: LA_E_OS_USER + + MESSAGE: OS user has changed since activation and the license is user-locked. + */ + public const int LA_E_OS_USER = 104; } }