Download MetaTrader 5

Mq4 Protection methods..

To add comments, please log in or register
Kumaresan Selvaraj
538
Kumaresan Selvaraj  
Hi, Can anybody share the common methods to protect the our indi...give some sample MQ4 plz..
Kumaresan Selvaraj
538
Kumaresan Selvaraj  
for 600 build or more
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
If there is common methods to protect, there also will be common methods to remove protection.
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
Then put it inside indicator.
Kumaresan Selvaraj
538
Kumaresan Selvaraj  
#import "Kernel32.dll"
bool GetVolumeInformationA(string RootPathName,
string VolumeNameBuffer, int VolumeNameSize,
int& VolumeSerialNumber[], int MaximumComponentLength,
int FileSystemFlags, string FileSystemNameBuffer,
int FileSystemNameSize);
#import
//+------------------------------------------------------------------+*/
string SystemDriveSerialNumber(string sDrive) {
int iVolumeSerialNumber[1]={0};
string sVolumeSerialNumber="Lxxxx";
if(GetVolumeInformationA(sDrive+":\\", " ", 15, iVolumeSerialNumber, 0, 0, " ", 15))
{
sVolumeSerialNumber=IntegerToHexString(iVolumeSerialNumber[0]);
sVolumeSerialNumber=StringConcatenate(StringSubstr(sVolumeSerialNumber,0,4), "-", StringSubstr(sVolumeSerialNumber,4));
}
return(sVolumeSerialNumber);

this is not working


Kumaresan Selvaraj
538
Kumaresan Selvaraj  
the indi has to work only for a particular system..
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
You are trying to commercializing your indi, so you have to search in Google: mql4 protection.
Kumaresan Selvaraj
538
Kumaresan Selvaraj  
if you go for mql4 protection, only suggestion they are saying to write it in dll..but i dont know how to do that..
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
search in Google: mql4 protection
SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
Sorry. Can't help you.
Kumaresan Selvaraj
538
Kumaresan Selvaraj  
#import "Kernel32.dll"
bool GetVolumeInformationW(string RootPathName,
string VolumeNameBuffer, int VolumeNameSize,
int& VolumeSerialNumber[], int MaximumComponentLength,
int FileSystemFlags, string FileSystemNameBuffer,
int FileSystemNameSize);
#import
//+------------------------------------------------------------------+*/
string SystemDriveSerialNumber(string sDrive) {
int iVolumeSerialNumber[1]={0};
string sVolumeSerialNumber="Lxxxxx";
if(GetVolumeInformationA(sDrive+":\\", " ", 15, iVolumeSerialNumber, 0, 0, " ", 15))
{
sVolumeSerialNumber=IntegerToHexString(iVolumeSerialNumber[0]);
sVolumeSerialNumber=StringConcatenate(StringSubstr(sVolumeSerialNumber,0,4), "-", StringSubstr(sVolumeSerialNumber,4));
}

return(sVolumeSerialNumber);

only this piece of coding i need help.. its not working :x

To add comments, please log in or register