For (ByteCounter=24; ByteCounter & gt;=0; - ByteCounter)
{
NCur=0;
For (k=14; K & gt;=0; - k)
{
NCur=(nCur * 256) ^ ProductKeyExtract [k].
ProductKeyExtract [k]=nCur/24;
NCur %=24;
}
Strcat (sCDKey KeyChars [nCur]);
//Insert ", "
if( ! (ByteCounter % 5) & amp; & ByteCounter)
Strcat (sCDKey, "-");
}
This method is suitable for Windows 7, but doing even win10 get is not accurate, it should be another algorithm, are there any ace to give directions, personal feeling is KeyChars structure of content have change,
CodePudding user response:
Top a
CodePudding user response:
ProductKeyExtract
KeyChars
The two variable parameters, you can ensure that it has Windows 7 and Win10 all the same?