Changeset 253 for trunk/src/helpers
- Timestamp:
- Jul 4, 2003, 4:12:24 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dosh.c
r249 r253 4610 4610 *@@changed V0.9.14 (2001-08-03) [umoeller]: fixed potential queue leak 4611 4611 *@@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 4616 APIRET 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) 4622 4625 { 4623 4626 APIRET arc = NO_ERROR; … … 4641 4644 4642 4645 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] 4644 4649 SData.FgBg = (fForeground) ? SSF_FGBG_FORE : SSF_FGBG_BACK; 4645 4650 // V0.9.3 (2000-05-03) [umoeller] … … 4653 4658 SData.Environment = 0; 4654 4659 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] 4656 4662 SData.IconFile = 0; 4657 4663 SData.PgmHandle = 0;
Note:
See TracChangeset
for help on using the changeset viewer.