VMProtectActivateLicense() returning undocumented 9

Issues related to VMProtect
Post Reply
bitman2112
Posts: 75
Joined: Wed Oct 30, 2013 5:24 pm

VMProtectActivateLicense() returning undocumented 9

Post by bitman2112 »

Hi,

After successfully obtaining a trial 30 day license against an Activation code from the weblm server, I desired to change the trial period from 30 days to 1 day so tomorrow I could see what happens when the time is up.

I deleted my licenses and recreated one with a 1 day expiration.
I must have screwed up my web license data because now VMProtectActivateLicense() is returning an undocumented 9.

Leave it to an end user....... :mrgreen:

I can tear it all down and start over, but what's a 9 return code mean?

The possible return codes

Flag Value Description
ACTIVATION_OK 0 Activation successful, the serial field contains a serial number.
ACTIVATION_SMALL_BUFFER 1 The serial number buffer is too small. The formula for the buffer size is: bits / 8 * 3 / 2 + N, where bits is the length of your RSA key and N is a “safety” buffer that should be at least 10.
ACTIVATION_NO_CONNECTION 2 The activation module was unable to connect the Web License Manager.
ACTIVATION_BAD_REPLY 3 The server returned unexpected reply. This means configuration problems or probably a cracking attempt.
ACTIVATION_BANNED 4 The activation code is blocked on the server. This doesn’t mean that the number of possible activations is exceeded, this means that this exactly code is banned by the vendor, so the user is trying to cheat you.
ACTIVATION_CORRUPTED 5 Something goes really wrong here. The error means that the internal activation stuff is not working, it is not safe to continue with the activation, registration and so on.
ACTIVATION_BAD_CODE 6 The code has been successfully passed to the server and it was unable to find it in the database. Probably the user made a mistake, so it is worth asking the user to check the entered code for mistakes.
ACTIVATION_ALREADY_USED 7 The code has been used too many times and cannot be used more. This doesn’t mean the code is bad or banned, it is OK. The user may contact vendor to ask/purchase more activations, or the user may deactivate some installations to increase the number of activations available for that code.
ACTIVATION_SERIAL_UNKNOWN 8 This is the deactivation error code that means that the server can’t find the serial number that the user tries to deactivate.

:Ron
Admin
Site Admin
Posts: 2686
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VMProtectActivateLicense() returning undocumented 9

Post by Admin »

We have added in WebLM the new error code "ACTIVATION_EXPIRED":

Code: Select all

// activation
enum VMProtectActivationFlags
{
	ACTIVATION_OK = 0,
	ACTIVATION_SMALL_BUFFER,
	ACTIVATION_NO_CONNECTION,
	ACTIVATION_BAD_REPLY,
	ACTIVATION_BANNED,
	ACTIVATION_CORRUPTED,
	ACTIVATION_BAD_CODE,
	ACTIVATION_ALREADY_USED,
	ACTIVATION_SERIAL_UNKNOWN,
	ACTIVATION_EXPIRED
};
So you can add this error code into VMProtectSDK.h
bitman2112
Posts: 75
Joined: Wed Oct 30, 2013 5:24 pm

Re: VMProtectActivateLicense() returning undocumented 9

Post by bitman2112 »

Well almighty then. :D
Post Reply