![]() |
SysEnvRec |
Header: OSUtils.h |
struct SysEnvRec { SInt16 environsVersion; SInt16 machineType; SInt16 systemVersion; SInt16 processor; Boolean hasFPU; Boolean hasColorQD; SInt16 keyBoardType; SInt16 atDrvrVersNum; SInt16 sysVRefNum; };
The version number of the SysEnvirons function that was used to fill in the record.
When you call SysEnvirons, you specify a version number to ensure that you receive a system environment record that matches your expectations. If you request a more recent version of SysEnvirons than is available, SysEnvirons places its own version number in the environsVersion field and returns a function result envVersTooBig.
A code for the Macintosh model. See Macintosh Model Codes. Use the Gestalt function to obtain information about machine types not listed among these constants.
The version number of the current System file, represented as two byte-long numbers with one or more implied decimal points. The value $0410, for example, represents system software version 4.1.
If you call SysEnvirons when a system earlier than 4.1 is running, the MPW glue places $0 in this field and returns a result code of envNotPresent.
A code for the microprocessor. See Microprocessor Codes.
A Boolean value that indicates whether hardware floating-point processing is available.
A Boolean value that indicates whether Color QuickDraw is present. This field says nothing about the presence of a color monitor.
A code for the keyboard type. See Keyboard Codes. Use the Gestalt function to obtain information about keyboard types not listed among these constants.
If the Apple Desktop Bus is in use, this field returns the keyboard type of the keyboard on which the last keystroke was made.
The version number of the AppleTalk driver (specifically, the .MPP driver) currently installed. If AppleTalk is not loaded, this field is 0.
The working-directory reference number of the folder or volume that holds the open System file.
The SysEnvirons function fills in a system environment record, which describes some aspects of the software and hardware environment.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)