VMProtectBeginUltraLockByKey with Delphi

Issues related to VMProtect
Post Reply
andthe
Posts: 7
Joined: Fri Nov 11, 2022 8:28 pm

VMProtectBeginUltraLockByKey with Delphi

Post by andthe »

I set a correct Serial in Delphi and before call the locked procedure I confirmed that the Serial is Ok...

I confirmed also, that (VMProtectGetSerialNumberState() returns = SERIAL_STATE_SUCCESS = (0)

Where is the wrong here ???
My code is the below:

if (VMProtectGetSerialNumberState() = SERIAL_STATE_SUCCESS) then
begin
VMProtectBeginUltraLockByKey('LoginClick');

// This is my procedure that must be locked with serial number
ConnectToServer();

VMProtectEnd;
end;

Thank you !
andthe
Posts: 7
Joined: Fri Nov 11, 2022 8:28 pm

Re: VMProtectBeginUltraLockByKey with Delphi

Post by andthe »

Sorry, I forgot to tell you that , even I have a right Serial when I press the button with the above code I sent you I get the following message:

This code requires valid serial number to run.
Program will be terminated.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: VMProtectBeginUltraLockByKey with Delphi

Post by Admin »

Could you send us very simple example (original EXE+VMP files) that shows your problem?
andthe
Posts: 7
Joined: Fri Nov 11, 2022 8:28 pm

Re: VMProtectBeginUltraLockByKey with Delphi

Post by andthe »

Hello,

This is a link of an example project in Delphi with 'VMProtectBeginUltraLockByKey' (Includes: LockToSerial.exe, LockToSerial.vmp.exe):

https://drive.google.com/drive/folders/ ... share_link

Thank you and I hope to hear from you soon !
andthe
Posts: 7
Joined: Fri Nov 11, 2022 8:28 pm

Re: VMProtectBeginUltraLockByKey with Delphi

Post by andthe »

Dear Admin,

This is closed !

I found that the problem was in vmp file.
I created a new vmp file and the problem solved !

Thank you very much !
Post Reply