Page 1 of 1

Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 9:06 am
by bobpops
Can SDK Func VMProtectGetCurrentHWID get hwid from serial number?
how to do?

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 10:48 am
by Support
May I ask why do you need this?

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 1:34 pm
by bobpops
However i set what values of hwid,the pragram runs wrong,
when the program protected by VMProtect and the serial number contains hwid.
i don't know how to transfer the right hwid value to VMProtect functions, so the VMProtectSetSerialNumber() will return CORRUPTED.

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 1:40 pm
by Support
The HWID of the system is computed by VMProtect. You can get the current HWID using the API call.
If you put HWID to the serial number, VMProtect will compare it with the system one. If they are matched, the serial number is OK.
You don't need to pass a HWID to VMProtect yourself.

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 1:47 pm
by bobpops
where can i learn the API call ?

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 1:52 pm
by Support
You need to call VMProtectGetCurrentHWID() to get the current HWID.
See the user manual for more details and examples.

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 2:03 pm
by bobpops
1、how does VMProtect compute the hwid of system?
2、in the examples,VMProtectGetCurrentHWID() get hwid from ini-file,can VMProtectSetSerialNumber() automatic compare it with the one in serial numer?

Re: Question about VMProtectGetCurrentHWID

Posted: Thu Dec 16, 2010 3:41 pm
by Admin
Please read next parts of the help file:
The software licensing system -> Example of usage -> Step #9: Lock serial number to hardware
and
The software licensing system -> Example of usage -> Licensing module API

The help file and examples have all necessary information that you need.

Re: Question about VMProtectGetCurrentHWID

Posted: Fri Dec 17, 2010 2:13 am
by bobpops
I have know that.
VMProtectGetCurrentHWID() can get system hwid after VMProtect compiler.
and put this hwid value to serial number,than VMProtectSetSerialNumber() return tight.
thank you very much,support and admin!