IsDllsAllowed
IsDllsAllowed
Checks if the DLL function call is allowed for the Expert Advisor.
bool IsDllsAllowed();Returned value
Returns true if the DLL function call is allowed for the Expert Advisor, otherwise returns false.
Example:
#import "user32.dll"
int MessageBoxA(int hWnd, string szText, string szCaption,int nType);
...
...
if(IsDllsAllowed()==false)
{
Print("DLL call is not allowed. Experts cannot run.");
return(0);
}
// expert body that calls external DLL functions
MessageBoxA(0,"an message","Message",MB_OK);See also
Last updated on