Jump to content

DosSMStart: Difference between revisions

From EDM2
Created page with "image:legacy.png ==Description== This allows the shell to start a new session. This can only be called by the shell that owns the session manager. I am not sure about the..."
 
Line 6: Line 6:
==Syntax==
==Syntax==
<PRE>
<PRE>
APIRET16 Pascal far DOSSMSTART(short flag,short mode,short type, char far* null1,char far* null2, char far* args, short* sessid, long unknown)
APIRET16 Pascal far DOSSMSTART(short flag,short mode,short type, char far* null1,
                              char far* null2, char far* args, short* sessid, long unknown)
</PRE>
</PRE>



Revision as of 16:11, 25 September 2016

Description

This allows the shell to start a new session. This can only be called by the shell that owns the session manager. I am not sure about the parameter 'type': this seems to be missing in some cases.

Syntax

APIRET16 Pascal far DOSSMSTART(short flag,short mode,short type, char far* null1,
                               char far* null2, char far* args, short* sessid, long unknown)

Parameters

flag
save parent session
   =0, yes
   =1, no 
mode
   =0, start in foreground
   =1, start in background 
type
   =0, normal session
   =1, vio session
   =2, windowed session
   =3, VDM session 
null1
must be null
null2
must be null
args
program arguments
sessid
the newly generated session id is returned
unknown
?

Return Code

Remarks

Example Code


Related Functions