Xref: utzoo comp.sys.amiga.tech:3773 comp.sys.amiga:29434 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!haven!aplcen!jhunix!ins_ajsk From: ins_ajsk@jhunix.HCF.JHU.EDU (Jon Kay) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: window help Message-ID: <794@jhunix.HCF.JHU.EDU> Date: 17 Feb 89 04:33:07 GMT References: <23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU> Reply-To: ins_ajsk@jhunix.UUCP (Jon Kay) Followup-To: comp.sys.amiga.tech Organization: Johns Hopkins Lines: 34 In article <20428@agate.BERKELEY.EDU> mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) writes: >In article <23793@pbhya.PacBell.COM> hbit@pbhya.PacBell.COM (Henry Bitter) writes: > > ... > >Now, if someone knows of a way supported by CBM of getting a >FileHandle pointing to a window after you've opened a file, that would >very usefull. I'd like to see it if you know how. > > -- There is one. Unfortunately, I am not within reach of my manuals at the moment, so I cannot be as specific as I would like, but here goes: If you do a FileInfo or an Info on a CON: window, one of the fields DOES return a pointer to the Window structure of that particular CON:. Unfortunately, I don't remember which field it is. It's in either the AmigaDOS Reference Manual or the Amiga Technical Manual, in the descriptions of DOS calls or DOS packet types, respectively. It is also possible, using BeginIO/SendIO type calls, to set up a console around a Window of your creation. But you can't perform printf's on it, but have to stick with write()-type calls (unless you happen to have _doprnt() - type code sitting around...). Hope this helps. If you don't have the manuals mentioned above, write me and I'll send specifics, or post if the amount of desperation out there seems to warrant it. Jon Kay