Step #5: Check serial number expiration date
Put the following line to INI-file:
ExpDate=20000101
Format of the date is YYYYMMDD, it is important that you put date from the past. Run the application and you will see:
state = SERIAL_STATE_FLAG_DATE_EXPIRED please register!
Let’s query some information before printing “pelase register”:
if (res)
{
VMProtectSerialNumberData sd = {0};
VMProtectGetSerialNumberData(&sd, sizeof(sd));
printf("exp. date: y = %d, m = %d, d = %d\n", sd.dtExpire.wYear, sd.dtExpire.bMonth, sd.dtExpire.bDay);
printf("please register!\n");
return 0;
}
Run the application again and you will see why serial number is invalid:
state = SERIAL_STATE_FLAG_DATE_EXPIRED exp. date: y = 2000, m = 1, d = 1 please register!
Remove the ExpDate=…. line from INI-file so we can check other limitations.