Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zephyr.ens.tek.com!gvgpsa!treehouse!andyp From: andyp@treehouse.UUCP (Andy Peterman) Newsgroups: comp.sys.mac.programmer Subject: Re: SysEnvirons versus Gestalt Message-ID: <810@treehouse.UUCP> Date: 16 Feb 91 19:46:44 GMT References: <28811@cs.yale.edu> Organization: The Treehouse Lines: 46 In article <28811@cs.yale.edu> tarr-michael@CS.YALE.EDU (michael tarr) writes: > >I wrote a small test program to check the machine number of various >machines. On my MacIIcx the Gestalt call (under 6.0.7) returns 8 while >the SysEnvirons record has a 6 in the MachineType field. Any clues? For some reason, Apple chose to use a different numbering system for Gestalt than they used for SysEnvirons. Just to confuse us, I guess! Here are the machine types that Gestalt returns: #define gestaltClassic 1 #define gestaltMacXL 2 #define gestaltMac512KE 3 #define gestaltMacPlus 4 #define gestaltMacSE 5 #define gestaltMacII 6 #define gestaltMacIIx 7 #define gestaltMacIIcx 8 #define gestaltMacSE030 9 #define gestaltPortable 10 #define gestaltMacIIci 11 #define gestaltMacIIfx 13 #define gestaltMacClassic 17 #define gestaltMacIIsi 18 #define gestaltMacLC 19 Here are the machine types that SysEnvirons returns: enum {envMac = -1}; enum {envXL = -2}; enum {envMachUnknown = 0}; enum {env512KE = 1}; enum {envMacPlus = 2}; enum {envSE = 3}; enum {envMacII = 4}; enum {envMacIIx = 5}; enum {envMacIIcx = 6}; enum {envSE30 = 7}; enum {envPortable = 8}; enum {envMacIIci = 9}; enum {envMacIIfx = 11}; -- Andy Peterman | Opinions expressed treehouse!andyp@gvgpsa.gvg.tek.com | are definitely those of (916) 273-4569 | my employer!