ReadKeys

Description

Reads the license keys stored on the end-user system with the StoreKeys API.

bool ReadKeys (ref string activationKey, ref string computerKey)

Arguments

NameData TypeDescription

activationKey

string

the stored activation key

computerKey

string

the stored computer bound key

Return

Data TypeDescription

bool

true if the call was successful

Remarks

To store keys, use the StoreKeys API. To clear the stored keys, use the DeleteKeys API.

Use the FavorMachineLevelLicenseKey to control which key takes precedence if the keys are stored at the user and machine levels.

The function returns true if either an activationKey or a computerKey was read, otherwise, it returns false.

Last updated