MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Checkup  IsLibrariesAllowed

 
bool IsLibrariesAllowed( )
Returns TRUE if the expert can call library function, otherwise returns FALSE. See also IsDllsAllowed(), IsTradeAllowed().
Sample:
  #import "somelibrary.ex4"
     int somefunc();
  ...
  ...
  if(IsLibrariesAllowed()==false)
    {
     Print("Library call is not allowed.");
     return(0);
    }
  // expert body that calls external DLL functions
  somefunc();