Cryptlex Forums

Integrating offline activation into our product

A
Adnan KamiliCryptlex team

Hey there,

I am attempting to integrate offline activation into our product, whenever I make the call to GenerateOfflineActivationRequest()
it fails with the error code 6. Can you think of a reason for this?

Prior to calling the offending function I have called SetProductFile(),
SetVersionGUID() and IsProductGenuine(), all completing with the
expected return codes.

C
Cryptlex Support

Generating offline activation request is equivalent to calling
ActivateProduct() function partially. So you need to set the product key
first. As mentioned in the header file error code 6:

`/*
    CODE: LA_E_PKEY

    MESSAGE: Invalid product key.
*/`

``` `#define LA_E_PKEY ((HRESULT)0x00000006L)` ```

← Back to all topics · 2 posts · 843 views · opened 2016-03-02