Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!think.com!zaphod.mps.ohio-state.edu!menudo.uh.edu!uace0 From: uace0@menudo.uh.edu (Michael B. Vederman) Newsgroups: comp.sys.atari.st.tech Subject: Re: GEM Windows/Stay-resident program Message-ID: <1991May23.134905.18328@menudo.uh.edu> Date: 23 May 91 13:49:05 GMT References: <1991May23.102120.938@informatik.uni-erlangen.de> Organization: University of Houston Lines: 43 In article <1991May23.102120.938@informatik.uni-erlangen.de> csbrod@immd4.informatik.uni-erlangen.de (Claus Brod) writes: >marco@sys6626.bison.mb.ca (Marco) writes: > >>Does anyone happen to have any code on sensing if there's a GEM window on >>the screen from within a stay-resident (auto folder) type program. Maybe >>there's a C function? > >You could do this from a DA by calling wind_get(WF_TOP...). If there is >a GEM window, there must be a top window. If there is none, you won't >get a top window handle other than 0 (desktop window). > >---------------------------------------------------------------------- >Claus Brod, Am Felsenkeller 2, Things. Take. Time. >D-8772 Marktheidenfeld, Germany (Piet Hein) >csbrod@medusa.informatik.uni-erlangen.de >Claus Brod@wue.maus.de >---------------------------------------------------------------------- There is also a section of lower memory used by the AES which tracks windows and their various attributes (including whether or not they are open). This area, however, is not documented, is very ROM dependent, and would be called an _illegal_ method of determining such by Atari Corp. If you are a hacker, you might want to mess with this, otherwise, a TSR can never find out the answer to such a question.... Although, one might install a TRAP #2 wedge, and perform a wind_get call at some safe time. Don't write me asking for more info! I will ignore any request for further details. I've probably said more than my friends at Atari would like... - mike -- ------------------------------------------------------------------------------ Double Click Me | Double Click Software | P.O. Box 741206 | Houston, Tx, 77274 ------------------------------------------------------------------------------ Voice: (713)977-6520 | DC DESKTOP | DC FORMATTER | DC UTILITIES | and others