TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Craig Morrison
from: Mike Bilow
date: 1995-01-08 03:34:12
subject: Full Screen or Windowed

CM> to tell if a character mode app is running in a window or 
 CM> full screen..

 MB> for a while.  There is only one rather convoluted method I
 MB> could come up with, too. 

 CM>   Doesn't sound convoluted at all to me. Uses a 
 CM> perfectly good system call.

Well, I guess it is a matter of opinion.  The method I suggested uses only
documented facilities, it is true.  I guess the reason it seems convoluted
to me is that I am not certain if you are always guaranteed that the
PROTSHELL (PMSHELL.EXE) is session 1.  IBM says in the docs that it is, but
you could someday run into a system which uses MSHELL.EXE or TSHELL.EXE as
the PROTSHELL, and I am not sure what would happen.

 MB> If the process knows it is in the foreground, then it can
 MB> use DosQuerySysInfo() to check QSV_FOREGROUND_FS_SESSION,

 CM>   Time to play.. I'll let ya know..

Good luck.

-- Mike


--- Maximus/2 2.02
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 229/2 12/2442 711/409 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™.