Page 1 of 1

Problem with Automatic Key Generation

Posted: Sun Dec 23, 2007 11:10 am
by fuwafunghk
Hi Igor Siticov,

I tried to implement my own keygen plug-in for Regkeeper this few days. I have followed the rules of Regkeeper Keygen plug-in. And I have disabled the "Process received mail orders in background", then I had clicked "Generate" button in "Registration Info" tab when Regkeeper got the tested mail order. But it did not give any "Key-info".

And then I used the Delphi version of Sample Key Gens provided with Regkeeper. It gave me the same result after I have compiled it and set the keygen path correctly.

Did I have something wrong?

Best regards,
Fuwa Fung.

Posted: Sun Dec 23, 2007 12:29 pm
by isiticov
Did you setup "product specific DLL" for key generator or did you compiled rkkeygen.dll and placed it into the same folder where RegKeeper.exe?

Posted: Sun Dec 23, 2007 2:08 pm
by fuwafunghk
Hi,

Yes. It can be set in the "Product Data" tab of a product in the "Product" navigation bar. The setting location is the last 2nd Edit Box in that tab.

Best regards,
Fuwa Fung.

Posted: Mon Dec 24, 2007 5:19 am
by isiticov
Please check the source of keygen DLL and be sure that GenerateKey function declared as following:

Code: Select all

procedure GenerateKey(KeyGenInfo: PKeyGenRecord; var UnlockCode: PChar; var FileToAttach: PChar); export; stdcall;
.
In some early installs this function was declared incorrectly in sample DLL source code.

Posted: Mon Dec 24, 2007 10:30 am
by fuwafunghk
isiticov wrote:Please check the source of keygen DLL and be sure that GenerateKey function declared as following:

Code: Select all

procedure GenerateKey(KeyGenInfo: PKeyGenRecord; var UnlockCode: PChar; var FileToAttach: PChar); export; stdcall;
.
In some early installs this function was declared incorrectly in sample DLL source code.
Yeah, you are right. Just without a directive "var" besides the "UnlockCode" variable will give this 2 big differences. But the online-help file declares this correctly. Thanks for your remind.

Best regards,
Fuwa Fung.