ESL for Windows local applications must define a function called EslMain, which is where program execution begins. The module containing this function is referred to as the main module. Command line arguments can be accessed in the same way as a standard main function by specifying the function arguments argc and argv (the argument count and an array of argument string pointers).
The function EslMain is called by a special local application startup function defined within LOCALAPP.LIB. Before calling EslMain, the startup function does the following:
•Allocates an input buffer.
•Creates an invisible window.
•Begins processing Windows messages.
•Establishes a communications link with ESL.