Allows an application to start another session, and to specify the name of the program to be started in that session.

#define INCL_dossesmgr
#include <os2.h>

PSTARTDATA    psd;         /*  A pointer to the STARTDATA structure containing data needed to start a window session. */
PULONG        pidSession;  /*  A pointer to a ULONG in which the session identifier associated with the child session created is returned. */
PPID          ppid;        /*  A pointer to the PID in which the process identifier associated with the child process created is returned. */
APIRET        ulrc;        /*  Return code. */

ulrc = DosStartSession(psd, pidSession, ppid);


[Back] [Next]