Jump to content

DosSMSwitch

From EDM2
Revision as of 18:30, 12 January 2017 by Ak120 (talk | contribs) (Ak120 moved page OS2 API:CPI:LEGACY:DosSMSwitch to DosSMSwitch)

Description

Request the session manager to switch to another foreground session. If PM is present, also internally call WinSetExtIdFocus. This can only be called by the shell that owns the Session Manager.


Syntax

APIRET16 Pascal far DOSSMSWITCH(short cmd,short sessid,ULONG unknown)

Parameters

cmd
   =0 do a normal session switch
   =1 switch to the next queued session
   =2 don't save state of the current fg session
   =3 don't restore state of current fg session
   =4 ???
   =5 similar to 4 ???
sessid
requested session id
unknown
must be 0

Return Code

Remarks

Example Code


Related Functions