Creating libraries

Libraries are simple scripts themselves which usually contain a number of functions. Libraries as opposed to normal scripts should not have a main function. If a main function is defined in a library, a duplicate declaration error will occur if the script that uses the function has a main function as well, or if the script does not have a main function, than the main function of the library will be called first.

Libraries should be put in the configured Library directory. Generally, this is in the following directory:

<GFI LanGuard install directory>\Library

It is also possible to place the library in a sub directory, but only under the configured library directory.