Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add lfAllUsers flag #9

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/LexActivator.pas
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ interface
;

type
TLAFlags = (lfUser, lfSystem, lfInMemory);
TLAFlags = (lfUser, lfSystem, lfAllUsers, lfInMemory);
TLAKeyStatus = (lkOK, lkExpired, lkSuspended, lkGracePeriodOver,
lkTrialExpired, lkLocalTrialExpired, lkFail,
lkException // for callback
Expand Down Expand Up @@ -141,7 +141,7 @@ procedure SetProductData(const ProductData: UnicodeString);

* Flags - depending upon whether your application requires admin/root
permissions to run or not, this parameter can have one of the following
values: lfSystem, lfUser, lfInMemory
values: lfSystem, lfUser, lfInMemory, lfAllUser

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muneebkq For documentation please refer to the LexActivator.h

Copy link
Collaborator Author

@muneebkq muneebkq Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsdoc modified

EXCEPTIONS: ELAWMICException, ELAProductFileException,
ELAProductDataException, ELAProductIdException,
Expand Down Expand Up @@ -2074,7 +2074,7 @@ implementation
LexActivator_DLL = 'LexActivator.dll';

const
LAFlagsToLongWord: array[TLAFlags] of LongWord = (1, 2, 4);
LAFlagsToLongWord: array[TLAFlags] of LongWord = (1, 2, 3, 4);

function LAFlagsToString(Item: TLAFlags): string;
begin
Expand Down Expand Up @@ -4884,4 +4884,4 @@ finalization
try ResetLicenseCallback; except end;
DeleteCriticalSection(LALicenseCallbackMutex[lciCheckForReleaseUpdate]);
DeleteCriticalSection(LALicenseCallbackMutex[lciSetLicenseCallback]);
end.
end.