TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gautam Lad
from: Denis Tonn
date: 1996-12-11 14:26:08
subject: DosStartSession rc=191 f

Original from  Gautam Lad  to **Anybody** on 12-10-1996
Original Subject: DosStartSession rc=191 fo

                         ---------------------------------------

GL> I'm using DosStartSession to launch programs the user wants.  Here's my class:
GL> APIRET Launch::Start(HWND hwnd, PSZ Executable, PSZ Title)

GL> sdata.SessionType = 2;
     
  SessionType (USHORT) 
     The type of session that should be created for this program. 

     The values of this field are shown in the list below: 

     0        SSF_TYPE_DEFAULT 
              Use the PgmHandle data, or allow the Shell to 
              establish the session type. 

     1        SSF_TYPE_FULLSCREEN 
              Start the program in a full-screen session. 

     2        SSF_TYPE_WINDOWABLEVIO 
              Start the program in a windowed session for 
              programs using the Base Video Subsystem. 

     3        SSF_TYPE_PM. 
              Start the program in a windowed session for 
              programs using the Presentation Manager services 
              (including AVIO calls). 

     4        SSF_TYPE_VDM 
              Start the program in a full-screen DOS session. 

     7        SSF_TYPE_WINDOWEDVDM 
              Start the program in a windowed DOS session. 
  
 Why not try a session type of 0? 

 If you wish, you could also use DosQueryAppType to dynamicly 
determine the sessiontype needed for the app. This would allow you to 
"restrict" the application types that user could ask you to run. 

GL> Here, if the program (Executable) is a DOS program, the program returns an 
GL> error 191 for rc (the ERRORBUF messagebox).  It works find 

  191   ERROR_INVALID_EXE_SIGNATURE 
          EXE signature is not valid - file is a DOS mode 
          program or an improper program. 


   Denis       

 All opinions are my very own, IBM has no claim upon them
. 
. 
.
--- Maximus/2 3.01
* Origin: T-Board - (604) 277-4574 (1:153/908)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 153/908 8086 800 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.