Problem:
Resolution:
Starting with the version 9 release, the WOW program can act as a "menu" program (without making the user choose), by using the GETCLIENTARGS function to get the command line of the wowclient.exe (i.e. use "wowclient.exe myprogram" in a program shortcut).
Then, based on this information, the program on the server can determine *which* WOW program to start. You will need to use UNSTRING to get the separate arguments, but this method requires only one port.
From the Help files below (it is not currently included in the User's Guide):
RPC WOW GETCLIENTARGS Function
The GETCLIENTARGS function can be executed on the server in a Thin Client architecture to retrieve any parameters that were part of the command line when the Thin Client executable (wowclient.exe) was started. It can be called only by the server portion of a Thin Client application, not the client. This function may be called by any program in the run unit on the server and may be called more than once.
Calling Sequence
CALL GETCLIENTARGS USING ARGUMENTS.
Parameter Declaration Description
ARGUMENTS PIC X(255) - An alphanumeric data item of at least 255 characters.