Tech Off Post

Single Post Permalink

View Thread: Prevent Sleep
  • User profile image
    phreaks

    Looking for a way for a service to prevent a windows box from sleeping.

    Is the SetThreadExecutionState api call the only way via .NET (C# or F#)?