Skip to content

Commit

Permalink
Merge pull request #30 from cryptlex/azan/la_all_users
Browse files Browse the repository at this point in the history
feat: add LA_ALL_USERS flag
  • Loading branch information
ahmad-kemsan authored Mar 29, 2024
2 parents e208d4e + e80d218 commit 2c99414
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/Cryptlex.LexActivator/LexActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ public static class LexActivator
{
public enum PermissionFlags : uint
{
/// This flag indicates that the application does not require admin or root permissions to run.
LA_USER = 1,
/// This flag indicates that the application must be run with admin or root permissions.
LA_SYSTEM = 2,
LA_IN_MEMORY = 4
/// This flag is specifically designed for Windows and should be used for system-wide activations.
LA_ALL_USERS = 3,
/// This flag will store activation data in memory. Thus, requires re-activation on every start of the application and should only be used in floating licenses.
LA_IN_MEMORY = 4,

}

public enum ReleaseFlags : uint
Expand Down Expand Up @@ -100,7 +106,14 @@ public static void SetProductData(string productData)
/// or SetProductData() function.
/// </summary>
/// <param name="productId">the unique product id of your application as mentioned on the product page in the dashboard</param>
/// <param name="flags">depending upon whether your application requires admin/root permissions to run or not, this parameter can have one of the following values: LA_SYSTEM, LA_USER, LA_IN_MEMORY</param>
/// <param name="flags">
/// depending on your application's requirements, choose one of the following values: LA_SYSTEM, LA_USER, LA_IN_MEMORY, LA_ALL_USERS.
///
/// - LA_USER: This flag indicates that the application does not require admin or root permissions to run.
/// - LA_SYSTEM: This flag indicates that the application must be run with admin or root permissions.
/// - LA_IN_MEMORY: This flag will store activation data in memory. Thus, requires re-activation on every start of the application and should only be used in floating licenses.
/// - LA_ALL_USERS: This flag is specifically designed for Windows and should be used for system-wide activations.
/// </param>
public static void SetProductId(string productId, PermissionFlags flags)
{
int status;
Expand Down

0 comments on commit 2c99414

Please sign in to comment.