
If you have a utility that already does this on a 68K Mac, it should also work on a PCI Mac. The code snippet below shows how to get the processor type:
// DTS snippet by Wayne Flansburg January 19, 1995
// This snippet calls the Gestalt Manager to read the machine type.
#include <stdio.h>
#include <GestaltEqu.h>
// prototypes
void main(void);
void main(void)
{
OSErr iErr = 0;
OSType selector = 'mach';
long response = 0;
printf("DTS Absolutely Free (Gratis) Snippet\n\n");
iErr = Gestalt(selector,&response);
if(!iErr)
printf("The informational selector 'mach' is %ld \n", response);
else
printf("Sorry, an error has occured\n");
}
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help