Description

This function will validate serial number.

Definition and parameters

extern "C" __declspec(dllexport) int __stdcall \
ValidateSerialNumber(char* serial, char* seed, char* app_sign, int algo, PDWORD sn_features, PDWORD sn_id);

Parameter Description
(IN)  
serial Pointer to serial number to be validated string value.
seed Pointer to serial numbers seed string value.
app_sign Pointer to application signature string value.
algo Serial numbers algorithm version (currently ignored, intended for future releases)
(OUT)  
sn_features Pointer to buffer for custom features value. (unsigned long - DWORD value)
sn_id Pointer to buffer for serial number ID value. (unsigned long - DWORD value)

Usage

serial, seed and app_sign parameters are mandatory. 

Custom feature (sn_features) value is a DWORD (32bit value) where each bit represents one feature.

Bit 0-15 represents custom features 1-16.

Return values

If serial number is valid, sn_features and sn_id values are set and return value is STATUS_OK.

If the function fails, return value is on of the following error codes:

STATUS_BAD_SERIAL
STATUS_BAD_APPSIGN
STATUS_BAD_SNSEED

Full list of return codes is available here.