Jump to content

DosSMInitialize: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:legacy.png]]
==Description==
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.
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==
==Syntax==
<PRE>
DosSMInitialize (args)
APIRET16 Pascal far DOSSMINITIALIZE(void* args)
 
</PRE>
==Parameters==
==Parameters==
; args : a structure
;args (void*):a structure
   
  struct initargs {
        struct initargs {
    short length; /*length of structure*/
            short length; /*length of structure*/
    long* sem1;  /*address of a semaphore to notify shell of a screen redraw*/
            long* sem1;  /*address of a semaphore to notify
    long* sem2;  /*address of a semaphore to notify that a FG session is terminated*/
                            shell of a screen redraw*/
    long unknown;
            long* sem2;  /*address of a semaphore to notify
    short flag;  /*=0 no PM, =1 PM exists*/
                            that a FG session is terminated*/
};
            long unknown;
            short flag;  /*=0 no PM, =1 PM exists*/
        };
 
 


==Return Code==
==Return Code==
APIRET16 Pascal far


==Remarks==
[[Category:Dos]]
 
 
==Example Code==
 
<PRE>
 
</PRE>
 
==Related Functions==
*
 
 
[[Category:The OS/2 API Project]]

Latest revision as of 05:25, 9 November 2018

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