Cryptlex Forums

SetProductData returns error 42

T
Tony.W

I have created a product and downloaded the product data file.

I also have downloaded lexactivator for windows (3.15.0). In my win32 application C++ I make an api call to SetProductData. The function returns error 42.

Can you tell me more about this error and what I might try to resolve it.

Thanks.

F
Faizan Kamili

Hi Tony,

The error description for the error code is:

Make sure you are passing the content of the Product.dat file to the SetProductData function and not the path of the Product file.

T
Tony.W

Hello Faizan,

My mistake. I was passing in the name of the .dat file instead of the contents of the file.

Issue resolved.

Thanks.

← Back to all topics · 3 posts · 940 views · opened 2021-08-03