Lock screen saver programmatically on Mac OSX
1 answer
You want to use:
UpdateSystemActivity(UsrActivity);
Here is the Apple Code Sample .
Remember this is deprecated for 64-bit binaries and I haven't found a suitable replacement, but the struggle continues .
+3
source to share