Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!tut!santra!kampi.hut.fi!jmunkki From: jmunkki@kampi.hut.fi (Juri Munkki) Newsgroups: comp.sys.mac.programmer Subject: Re: How to get video card slot numbers? Message-ID: <1989Dec22.224758.14483@santra.uucp> Date: 22 Dec 89 22:47:58 GMT References: <1989Dec22.183916.9197@santra.uucp> Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: jmunkki@kampi.hut.fi (Juri Munkki) Organization: Helsinki University of Technology, Finland Lines: 20 As usual, I figured out the problem before anyone had time to respond. This time the solution was simple, but finding it wasn't. If I knew the Macintosh device manager better, I might have found it sooner. Here's a way to find the slot number of the main GDevice: GDHandle MainDisplay; AuxDCEHandle DisplayDriver; MainDisplay=GetMainDevice(); DisplayDriver=(void *)GetDCtlEntry((*MainDisplay)->gdRefNum); Vv.theslot=(*DisplayDriver)->dCtlSlot; It's simple now that I know how to do it. I use this to install a real VBL task for the sega glasses demo software. _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ | Juri Munkki jmunkki@hut.fi jmunkki@fingate.bitnet I Want Ne | | Helsinki University of Technology Computing Centre My Own XT | ^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^