Date: Sun, 28 Nov 1999 11:57:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Alan Illeman cc: djgpp AT delorie DOT com Subject: Re: VBE links in djgppfaq ?? In-Reply-To: <383F3F37.A9AA4946@interlog.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 26 Nov 1999, Alan Illeman wrote: > Can someone help with converting this code for djgpp ?? > > BOOL GetVgaInfo(VGAINFO *vgainfo) > { > union REGS ir, or; > struct SREGS sr; > > ir.x.ax = GET_VESA_VGA_INFO; > ir.x.di = FP_OFF(vgainfo); > sr.es = FP_SEG(vgainfo); > int86x(0x10, &ir, &or, &sr); > if(or.h.ah == 1 || or.h.al != 0x4F) > return FALSE; > > return TRUE; > } See section 18.5 of the FAQ, it discusses this.