Validate Key
Validates a license key with the server and creates an authenticated session.
Signature
bool ValidateKey(const std::string& licenseKey);Parameters
Type: std::string
Description: The license key to validate
Format: "XXXX-XXXX-XXXX-XXXX"
Required: Yes
Returns
Type: bool
true
License is valid and session created
false
License is invalid or validation failed
Basic Example
Error Handling
"Invalid key"
License doesn't exist
Verify key is correct
"License expired"
Expiration date passed
Renew subscription
"HWID mismatch"
Bound to different device
Reset HWID from dashboard
"License suspended"
Manually disabled
Contact support
"Max devices exceeded"
Device limit reached
Reset HWID or increase limit
How It Works
All validation requests are encrypted and HWID is hashed before transmission.
The server performs the following checks:
If validation succeeds, a session token is generated and stored internally.
Related Functions
GetSessionToken - Retrieve session token
GetKeyInfo - Get license details
SendHeartbeat - Required before validation
Last updated