home *** CD-ROM | disk | FTP | other *** search
-
- Component Name: TmRegApp
- Author: Mats Asplund
- Creation: 2002-08-03
- Version: 1.0
- Description: An application registration component.
- Credit: Thanks to Oleg Petkov, http://olegpetkov.dir.bg/
- for providing the code/decode-routines.
- E-mail: masprod@telia.com
- Site: http://go.to/mdp
- Legal issues: All rights reserved 2002« by Mats Asplund
-
- Usage:
- This software is provided 'as-is', without any express or
- implied warranty. In no event will the author be held liable
- for any damages arising from the use of this software.
-
- Permission is granted to anyone to use this software for any
- purpose, including commercial applications, and to alter it
- and redistribute it freely, subject to the following
- restrictions:
-
- 1. The origin of this software must not be misrepresented,
- you must not claim that you wrote the original software.
- If you use this software in a product, an acknowledgment
- in the product documentation would be appreciated but is
- not required.
-
- 2. Altered source versions must be plainly marked as such, and
- must not be misrepresented as being the original software.
-
- 3. This notice may not be removed or altered from any source
- distribution.
-
- 4. If you decide to use this software in any of your applications.
- Send me an EMail and tell me about it.
-
- Quick Reference:
- TmRegApp inherits from TComponent.
-
- Key-Properties:
-
- P: The password. Automatically coded. Otherwise it could be read in the
- resource part of the exe-file. Note! Set password at designtime. Otherwise
- it will not work.
-
- CodeKey: Key used for coding/decoding. Change this to anything you like.
-
- DaysToUse: The number of days before registering is needed.
-
- FakeGUID: A false GUID used as key in Registry. You should change this,
- otherwise others with knowledge of this component could find it.
-
- Key-Methods:
-
- Init: Should be called each time the application starts executing. Returns
- the days left before registrering is needed. If the app. is registered
- -1 is returned.
-
- MoveBack: Read this to see if user has manipulated the clock. If true,
- the user has moved the clock back more then one day compared with
- the lastuse date. In this case 0 will be returned (and will
- continue to do so until registered), when calling the Init function.
-
- ClearReg: Deletes all Registry-entries made.
- (Deletes the FakeGUID-key from Registry.)
-
- CheckPassWord: Returns true if password is correct.
- If so the values: 'DaysToUse', 'Expire', 'LastUse' will be
- deleted from Registry. The value: 'Registered' will be set true.
-
- ExpireDate: Returns Expiredate as a string.
-
- InstallationDate: Returns Installationdate as a string.
-
- LastUseDate: Returns the date of last use as a string.
-
-
-