KUNCExectute and return values
KUNCExectute and return values
- Subject: KUNCExectute and return values
- From: "Andrew James" <email@hidden>
- Date: Thu, 22 Nov 2007 21:35:38 +1030
Hi,
I am developing a KEXT which requires the power source, now i have done lots of study into finding a way to access the power source information but there seems to be no obvious way for a KEXT to access this data.
Then it came to me, why not use a secondary binary which is ever so simple and all it does is return the value of the power source in a error code of the binary (10 for AC etc)
However i can not work out how to retrieve the return value all i get is 0
kern_return_t ret;
ret = KUNCExecute("/Users/jamesas/Projects/Build/Release/PowerSource"
, kOpenAppAsRoot, kOpenApplicationPath);
IOLog
("KUNC: %d", ret);
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden