Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hw.cpufamily vs ASP vs machine.h



Invoke the system_profiler tool and parse its output; use something like "system_profiler -xml SPHardwareDataType".

i am unable to find any API called "system_profiler()" that I can call from my C++ (carbon) program.


are you thinking i need to call system("system_profiler -xml SPHardwareDataType") ?
if so, where does the output go? how do i get it into a memory buffer? am i supposed to pipe it to a temp file then read that file to parse it?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.