Download MetaTrader 5
To add comments, please log in or register
Write articles and earn money. We pay 200 USD for them!
Edward Hirsch
688
Edward Hirsch 2010.09.17 13:13  
GetVolumeInformation() has served me well in my applications.
JC
1399
JC 2010.09.17 13:21  
sxTed:
GetVolumeInformation() has served me well in my applications.

There's an official Microsoft tool for changing the volume ID on a drive: http://technet.microsoft.com/en-us/sysinternals/bb897436.aspx. Using the volume ID as a simple licensing mechanism is well-known, and the workaround to break such simple licensing mechanisms is also well-known - among a certain type of user, or among people who are prepared to do a little digging.

Like I said before, "the means which is used for identifying a computer has to be a compromise between security and practicability". I'm sure that use of GetVolumeInformation() has worked very well for you, and will continue to do so. But you have chosen - perfectly validly - a compromise which leans towards simplicity rather than security.

And there remains the fact that any protection which is implemented solely through MQL4 code is very vulnerable to decompilation.

Piotr
1248
Piotr 2010.09.18 17:36  
sxTed:

puncher, there you go


Something is wrong:

How to reference to SystemDriveSerialNumber function ?

bernd
977
bernd 2010.09.18 20:42  

Do you know that everybody who is interested in pirating and reselling your EA will simply (routinely) decompile it and remove whatever sophisticated serial-number protection you put into it in not more than 2 minutes time?

You should run the essential parts of your strategy on a server and not inside the EA and make some kind of subscription service where paying users have login/password. The EA would connect to the server, authenticate, send some data and get its trading signals or some complicated calculation results back.

qjol
3243
qjol 2010.09.18 22:39  

& the serial no. from the disk can be change too

In my opinion you need to store some or all of the code in a server That the EA should connect to the server & read the code from there

& get buy/sell signals

Expert Trader
534
Expert Trader 2014.04.23 10:19  
can any one help with a sample mq4 file
Expert Trader
534
Expert Trader 2014.04.23 10:20  
IntegerToHexStringgiving error as function not defined
Muhammad Arofat
692
Muhammad Arofat 2014.11.17 03:30  
kum01049:
IntegerToHexStringgiving error as function not defined

#include <stdlib.mqh>

But I still not able to use this function, can you please give an example?

positivezero
32
positivezero 2015.05.22 06:47  
Is there any update on this?
JD4
1101
JD4 2015.06.25 02:04  
Part of the problem with the solutions suggested, as I see it, is if someone has thought of using it to secure it, then it is almost guaranteed that someone else is either trying to or has already figured out a way to get past it.  There is unlikely to be any solution that is and will be 100% secure.
/ /12
To add comments, please log in or register