I am working on a C# application which runs in the background without any Windows control.
I want to notify Windows that my application is still alive to prevent Win
You can use SetThreadExecutionState described here:
Since it is a Win32 API function, to use it from C# you'll need to PInvoke it. The steps are described here, including a sample method PreventSleep to temporarily disable sleep mode: