Re: UpdateUsrActivity on 64-bits
Kyle Sluder <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 3, 2009 at 12:59 PM, Christiaan Hofman<[email protected]> wrote: > I am using the UpdateUsrActivity() function to prevent the computer from > sleeping at certain times. However when moving over to 64-bits I just > discovers that this function is not available for 64-bit, as the > OSServices/Power.h header is excluded for __LP64. Could anyone tell me what > the proper replacement is? I/O Kit. See the I/O Kit Power Management release notes for a nice convenient application API that does exactly what you want: http://developer.apple.com/mac/library/releasenotes/Darwin/RN-IOKitPowerManagment/index.html --Kyle Sluder