Foundation 6

Fnd_RegG

3 shared methods.

Fnd_RegG_Format

Fnd_RegG_Format (MD5; format) --> Text

Returns an unlock code by formatting the MD5 value using the specified format.

The # characters in the format string are replaced by characters from the MD5.

This method is identical to Fnd_Reg_Format.

Example: Input: ("35bf6fd6b73c1e29ac15a50316c4cc6c";"Test ###-##/###*") Output: "Test 35b-f6/fd6*"

ParameterTypeDirectionDescription
md5TextinAn MD5 value
inFormatTextinA format description
ResultTextoutThe formatted value

Fnd_RegG_GenerateUnlockCode

Fnd_RegG_GenerateUnlockCode (secret key; feature code; user name; {license info{; format}}) --> Text

Returns a registration/unlock code based on the product number and user name.

Fnd_Reg licenses the host developer's application, not Foundation: it shows the host's demo and registration dialogs and checks the unlock codes the host issues.

Security: Fnd_RegG_GenerateUnlockCode ships in Foundation's source, so a host must set its own key with Fnd_Reg_SetSecretKey at startup. The MD5-based codes deter casual copying only; they are not copy protection.

ParameterTypeDirectionDescription
secretKeyTextinThe unique product secret key
inFeatureCodeTextinThe feature code
personalizationTextinThe user name
inLicenseInfoTextinThe license information (optional)
inFormatTextinThe unlock code format (optional)
ResultTextoutThe unlock code

Fnd_RegG_Info

Fnd_RegG_Info (label) --> Text

Returns requested information. See the Fnd_Gen_ComponentInfo method for more information.

Fnd_Reg licenses the host developer's application, not Foundation: it shows the host's demo and registration dialogs and checks the unlock codes the host issues.

ParameterTypeDirectionDescription
requestTextinInfo desired ("version" or "name")
ResultTextoutResponse