4751
Finished Programs / Re: SOLVED: Log off & Standby in 1-Click
« Last post by MilesAhead on October 27, 2011, 06:43 PM »Glad to see you made it over from Win7 Forums. 
I suspect that as soon as you log out, there's no user with shutdown privilege. For that reason I suspect it would have to be written as a service. Since the API call uses 0 as the code for log off I'm wondering if that was done deliberately to prevent doing this.
But I don't know that for sure. I haven't written any services so perhaps someone with Windows Services experience can chime in if it's doable.

I suspect that as soon as you log out, there's no user with shutdown privilege. For that reason I suspect it would have to be written as a service. Since the API call uses 0 as the code for log off I'm wondering if that was done deliberately to prevent doing this.
But I don't know that for sure. I haven't written any services so perhaps someone with Windows Services experience can chime in if it's doable.

Recent Posts