Changeset 310 for trunk/src


Ignore:
Timestamp:
Apr 1, 2006, 5:46:11 PM (19 years ago)
Author:
pr
Message:

Added title parameter to doshQuickStartSesssion

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cppbase/bs_config.cpp

    r308 r310  
    23432343 *@@changed V0.9.18 (2002-03-08) [umoeller]: added codec
    23442344 *@@changed V1.0.5 (2005-01-25) [pr]: Change directory to that of executable
     2345 *@@changed WarpIN V1.0.10 (2006-04-01) [pr]: Set title in doshStartSession call
    23452346 */
    23462347
     
    23482349                       BSFileLogger *pLogFile)  // in: file logger (log file), can be NULL
    23492350{
     2351    string    strTitle;
     2352    strTitle.assignUtf8(&codecProcess, _ustrExecutable);
    23502353    string    strParams = "/c ";
    23512354    strParams.appendUtf8(&codecProcess, _ustrExecutable);
     
    23842387    if (_arc = doshQuickStartSession("cmd.exe",
    23852388                                     (PSZ)strParams.c_str(),
     2389                                     (PSZ)strTitle.c_str(),
    23862390                                     SSF_TYPE_DEFAULT,            // session type
    23872391                                     FALSE,   // foreground
  • trunk/src/helpers/dosh.c

    r271 r310  
    46584658 *@@changed V1.0.2  (2003-02-04) [jsmall  ]: inserted new 3rd parameter for session type
    46594659 *@@changed V1.0.2  (2003-02-04) [jsmall  ]: changed code so when fWait = FALSE then session is started as independent, not as a child
     4660 *@@changed V1.0.5 (2006-04-01) [pr]: Added pcszTitle parameter
    46604661 */
    46614662
    46624663APIRET doshQuickStartSession(PCSZ pcszPath,         // in: program to start
    46634664                             PCSZ pcszParams,       // in: parameters for program
     4665                             PCSZ pcszTitle,        // in: window title
    46644666                             USHORT usSessionType,  // in: session type
    46654667                             BOOL fForeground,      // in: if TRUE, session will be in foreground
     
    46974699        SData.TraceOpt = SSF_TRACEOPT_NONE;
    46984700
    4699         SData.PgmTitle = (PSZ)pcszPath;       // title for window
     4701        // V1.0.5 (2006-04-01) [pr]
     4702        if (pcszTitle && *pcszTitle)
     4703            SData.PgmTitle = (PSZ)pcszTitle;      // title for window
     4704        else
     4705            SData.PgmTitle = (PSZ)pcszPath;
     4706
    47004707        SData.PgmName = (PSZ)pcszPath;
    47014708        SData.PgmInputs = (PSZ)pcszParams;
Note: See TracChangeset for help on using the changeset viewer.