DosSMInitialize

From EDM2
Revision as of 01:52, 16 September 2017 by Martini (Talk | contribs)

Jump to: navigation, search
Att.gif Legacy Function Warning
It is recommended to use a newer replacement for this function.
Replacement:
Remarks: This page list the older version of the function for reference.

This will initialize the session manager shell. The first process to call this will become the shell that owns the session manager. Further calls will fail.

Syntax

DosSMInitialize (args)

Parameters

args (void*)
a structure
       struct initargs {
           short length; /*length of structure*/
           long* sem1;   /*address of a semaphore to notify
                           shell of a screen redraw*/
           long* sem2;   /*address of a semaphore to notify
                           that a FG session is terminated*/
           long unknown;
           short flag;   /*=0 no PM, =1 PM exists*/
       };

Return Code

APIRET16 Pascal far