Sending requests

With WindowsEnabler/400, you send requests from the AS/400 to the PC. The WindowsEnabler PC program tries to handle these requests for you. Suppose that you have a program "a.exe" that you want to run. You send a request for program a.exe to the WindowsEnabler PC program. WindowsEnabler starts the program a.exe, but the program ends with a return value that means: "Invalid number of parameters". As far as WindowsEnabler is concerned, the program started and ended correctly. WindowsEnabler can only determine whether an arbitrary PC program ended in error, if this program sends appropriate return values.

There is an important distinction between the handling of requests and occurrence of an error. WindowsEnabler can handle a request properly, but inside the request, an error can occur. An error occurred in the example above, although the request was handled correctly. If the PC program does not send a return value indicating that an error occurred, WindowsEnabler will never learn about this error. See the section Errorhandling for more information.

The requests are send through the WindowsEnabler/400 AS/400 commands: STRWINPGM, STRWINSRV, STRPGMSEQ, STRCRTMDL, and STRRUNMDL.