|
| Undocumented: Delphi Visual Component Library Access License |  
|
|---|
Product: Delphi 5.x (or higher) | Category: VCL-General | Skill Level:
 | Scoring:  | Last Update: 12/17/2001 | Search Keys: delphi delphi3000 article borland vcl code-snippet DVCLAL GDAL RCS RPR AL1 AL2 ALV ALR undocumented secret license compiler | Times Scored: 6 | Visits: 3661 | Uploader: Erwin Molendijk Company: Carvix & Delfer | Reference: N/A | | | Question/Problem/Abstract:
Undocumented: Delphi Visual Component Library Access License
| Answer:
Undocumented: Delphi Visual Component Library Access License (DVCLAL)
By: E.J.Molendijk, Delphi Factory Netherlands BV.
The SysUtils.pas unit contains some very interesting routines that are used by the VCL components to check if the correct version of Delphi is beeing used to compile the code (e.g. C/S components won't run if compiled with the Pro compiler).
Here are the functions:
function GDAL: LongWord;
Get Delphi Access License. Retreives the access licences resource. It checks if it is valid, if not an exception with the message 'Application is not licensed to use this feature' is raised.
The returned value is the decrypted first Access Licence (AL1).
procedure RCS;
Perform a check to see there is a Delphi Client Server licence. An exception is raised if the license is not valid.
procedure RPR;
Perform a check to see there is a Delphi Pro licence. An exception is raised if the license is not valid.
Other non exposed functions are:
function AL1(const P): LongWord;
function AL2(const P): LongWord;
These two functions return the decrypted value of the license value specified by P.
procedure ALV;
Raises an Access Licence Violation exception.
function ALR: Pointer;
Access License Resource loader. Returns a pointer to the loaded access license. An exception is raised if the resource is not found.
|
|
|
| |
Sign up to consume product discounts for Bronze memberships !
|
|
| |
Community Ad of D. Souchard |
|
| |
|
|
|