Visit our Sponsor   Visit our Sponsor
delphi3000.com - the free delphi knowledge platform
delphi3000.com - the free delphi knowledge platform
496 Users Online NOW
Have a look at your member-status

connecting people's knowledge


  - Recent ArticlesRSS feed for Recent Articles on delphi3000.com
  - List of All Articles
  - Top Viewed Articles
  - Articles (+Attachem.)
  - Articles Of Interest
  - Categories
  - Top Uploader
  - Search
  - Index

  - My Home
  - Submit an Article
  - My Articles
  - My Personal Data
  - My Bookmarks
  - Activities
  - Login/Logout

  - Sign Up
  - Why Sign Up
  - Newsletter

  - Press
  - Advertise

  - Contact
  - Feedback





Community
Borland
ClubeDelphi
Dr. Bob
UK-BUG
Delphi Meetings
Planeta Delphi



Loremo - the 1.5 liter car coming in 2009




Startblatt.de






Share this article with friendsShare this article with friends
Rate this articleRate this article - to keep the quality of delphi3000.com !
Comment this article or read through previous comments (1)


Undocumented: Delphi Visual Component Library Access LicenseGo to <B>Erwin</B> Molendijk's websiteFormat this article printer-friendly!Bookmark function is only available for registered users!
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.





Please rate this article!
Skill level:
BeginnerExpert

Useful:
No!Very!

Overall rating:
PoorExcellent



Comments to this article
Write a new comment
Fantastic
    Stewart Moss (Jul 26 2003 2:11PM)

Very nice article..

I got stuck once licensing the DataCube controls under professional. I even approached borland about buying these components for Professional and they were not interested.

I saw the procedures you mentioned and even stepped into the assembler to try reverse it. (I distinctly remember P2() giving me major grey hairs)

I must say borland did a good job in tightening this lot up and you have got me fired up again to look further

Thanks!!!!
Respond














 
Sign up to consume product discounts for Bronze memberships !

read more


  Visit our Sponsor

 

  Community Ad of
D. Souchard
 
   














 







     
  Copyright © 2000 - 2007 delphi3000.com - All rights reserved. Terms of use. || Privacy
delphi3000.com is a service by bluestep.com IT-Services GmbH (Vienna)