home *** CD-ROM | disk | FTP | other *** search
-
- {
- Parameters.i
- This is the stuff necessary for command line work, including
- the Workbench message.
- }
-
- {$I "Include/Ports.i"}
-
- type
- WBArg = Record
- waLock : Address; { actually a File Lock of a directory }
- waName : String; { a file relative to that directory }
- end;
-
- WBArgList = Array [1..100] of WBArg; { Only 1..smNumArgs are valid }
- WBArgListPtr = ^WBArgList;
-
- WBStartup = Record
- smMessage : Message;
- smProcess : MsgPortPtr;
- smSegment : Address;
- smNumArgs : Integer;
- smToolWindow : Address;
- smArgList : WBArgListPtr;
- end;
- WBStartupPtr = ^WBStartup;
-
- {
- The following function just returns the Workbench message pointer.
- }
- Function GetStartupMsg() : WBStartupPtr;
- external;
-
- {
- This procedure copies the requested parameter into the string S.
- S must already be allocated, of course. Note that the parameters can
- come from the command line or from the Workbench message. S will be
- a string of length 0 (in other words S^ = Chr(0)) if the parameter
- doesn't exist.
- }
- Procedure GetParam(n : Short; var S : String);
- external;
-
-