Changeset 253


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

Misc fixes, plus those from jsmall

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/call_file_dlg.c

    r160 r253  
    2121 *
    2222 *@@added V0.9.19 (2002-04-24) [umoeller]
     23 *@@changed V1.0.2 (2003-03-07) [umoeller]: HWND_DESKTOP owner causes focus problems, fixed
    2324 */
    2425
     
    166167                    memset((PBYTE)pfdShared, 0, cbShared);
    167168
     169                    // fix HWND_DESKTOP owner V1.0.2 (2003-03-07) [umoeller]
     170                    if (hwndOwner == HWND_DESKTOP)
     171                        hwndOwner = NULLHANDLE;
     172
    168173                    // copy owner window
    169174                    pfdShared->hwndOwner = hwndOwner;
  • trunk/include/helpers/dosh.h

    r249 r253  
    731731    APIRET doshQuickStartSession(PCSZ pcszPath,
    732732                                 PCSZ pcszParams,
     733                                 USHORT usSessionType,
    733734                                 BOOL fForeground,
    734735                                 USHORT usPgmCtl,
  • trunk/src/cppbase/bs_config.cpp

    r249 r253  
    8585    // as unsigned char
    8686
     87#define INCL_DOSSESMGR
    8788#define INCL_DOSSEMAPHORES
    8889#define INCL_DOSERRORS
     
    22922293    if (_arc = doshQuickStartSession("cmd.exe",
    22932294                                     (PSZ)strParams.c_str(),
     2295                                     SSF_TYPE_DEFAULT,            // session type
    22942296                                     FALSE,   // foreground
    22952297                                     0,       // auto-close, visible
  • 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.