TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Craig Morrison
from: Mike Bilow
date: 1995-01-05 04:45:54
subject: Full Screen or Windowed

On 94 Dec 16 at 20:11, Craig Morrison of 1:201/60 wrote:

 CM> Just wondering if someone could give me a clue as to how 
 CM> to tell if a character mode app is running in a window or 
 CM> full screen..

This is an interesting question, and I had to think about it for a while. 
There is only one rather convoluted method I could come up with, too.

If the process knows it is in the foreground, then it can use
DosQuerySysInfo() to check QSV_FOREGROUND_FS_SESSION, which holds the
session ID of the current foreground full-screen session.  If this is 1,
then PM has the screen and the application is running in a VIO window under
PM.  If this is anything other than 1, then the application must be full
screen.

I didn't actually try this, so I'm curious to know if it works.
 
-- Mike
 

--- Msgedsq/2 2.2e
* 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™.