| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Watcom DosStartSession He |
Hi Brandt,
BE> I am having one heck of a time getting the Watcom DosStartSession() to
BE> start a session. I have done everything I can to start a new session
BE> but can't seem to figure it out. Is there someone out there that can
BE> give me an example of using this function to start a FS OS/2 from a PM.
Well, I use Borland, but this is what I use:
STARTDATA StartData;
memset( &StartData, 0, sizeof( STARTDATA ) );
---- FULL SCREEN ----- --------- PM --------
StartData.Length = sizeof( STARTDATA ); = sizeof( STARTDATA );
StartData.Related = FALSE; = TRUE;
StartData.FgBg = FALSE; = FALSE;
StartData.TraceOpt = 0; = 0;
StartData.PgmTitle = PgmTitle; = PgmTitle;
StartData.PgmName = PgmName; = PgmName;
StartData.PgmInputs = CmdLine; = PgmInput;
StartData.TermQ = 0; = 0;
StartData.Environment = 0; = 0;
StartData.InheritOpt = 1; = 0;
StartData.SessionType = 3; = 1;
StartData.IconFile = 0; = 0;
StartData.PgmHandle = 0; = 0;
StartData.PgmControl = 0; = 0;
Ret = DosStartSession( &StartData, &PidSession, &ProcessId );
The difference if the StartData.SessionType, but I included the rest as an example.
Bye, Johan.
--- The-Box Point 0.15+ PC
* Origin: johan{at}bitbike.iaf.nl - CIS: 100120,2502 (2:283/512.16)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 283/512 280/801 270/101 712/515 711/808 809 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™.