Ignore:
Timestamp:
Jul 4, 2003, 4:12:24 PM (22 years ago)
Author:
umoeller
Message:

Misc fixes, plus those from jsmall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/dosh.c

    r249 r253  
    46104610 *@@changed V0.9.14 (2001-08-03) [umoeller]: fixed potential queue leak
    46114611 *@@changed V0.9.14 (2001-08-03) [umoeller]: fixed memory leak in wait mode; added pusReturn to prototype
    4612  */
    4613 
    4614 APIRET doshQuickStartSession(PCSZ pcszPath,       // in: program to start
    4615                              PCSZ pcszParams,     // in: parameters for program
    4616                              BOOL fForeground,  // in: if TRUE, session will be in foreground
    4617                              USHORT usPgmCtl,   // in: STARTDATA.PgmControl
    4618                              BOOL fWait,        // in: wait for termination?
    4619                              PULONG pulSID,     // out: session ID (req.)
    4620                              PPID ppid,         // out: process ID (req.)
    4621                              PUSHORT pusReturn) // out: in wait mode, session's return code (ptr can be NULL)
     4612 *@@changed V1.0.2  (2003-02-04) [jsmall  ]: inserted new 3rd parameter for session type
     4613 *@@changed V1.0.2  (2003-02-04) [jsmall  ]: changed code so when fWait = FALSE then session is started as independent, not as a child
     4614 */
     4615
     4616APIRET doshQuickStartSession(PCSZ pcszPath,         // in: program to start
     4617                             PCSZ pcszParams,       // in: parameters for program
     4618                             USHORT usSessionType,  // in: session type
     4619                             BOOL fForeground,      // in: if TRUE, session will be in foreground
     4620                             USHORT usPgmCtl,       // in: STARTDATA.PgmControl
     4621                             BOOL fWait,            // in: wait for termination?
     4622                             PULONG pulSID,         // out: session ID (req.)
     4623                             PPID ppid,             // out: process ID (req.)
     4624                             PUSHORT pusReturn)     // out: in wait mode, session's return code (ptr can be NULL)
    46224625{
    46234626    APIRET      arc = NO_ERROR;
     
    46414644
    46424645        SData.Length  = sizeof(STARTDATA);
    4643         SData.Related = SSF_RELATED_CHILD; //INDEPENDENT;
     4646//      SData.Related = SSF_RELATED_CHILD; //INDEPENDENT;
     4647        SData.Related = (fWait) ? SSF_RELATED_CHILD : SSF_RELATED_INDEPENDENT;
     4648                // V1.0.2 (2003-02-04) [jsmall]
    46444649        SData.FgBg    = (fForeground) ? SSF_FGBG_FORE : SSF_FGBG_BACK;
    46454650                // V0.9.3 (2000-05-03) [umoeller]
     
    46534658        SData.Environment = 0;
    46544659        SData.InheritOpt = SSF_INHERTOPT_PARENT;
    4655         SData.SessionType = SSF_TYPE_DEFAULT;
     4660//      SData.SessionType = SSF_TYPE_DEFAULT;
     4661        SData.SessionType = usSessionType;    // V1.0.2 (2003-02-04)  [jsmall]
    46564662        SData.IconFile = 0;
    46574663        SData.PgmHandle = 0;
Note: See TracChangeset for help on using the changeset viewer.