1

Topic: How to lock a sleeping mode from the console application?

All greetings! Subj, It is actually necessary, that the console application when it is launched, did not allow to system to pass in a sleeping mode (Like there is a similar behavior for video-players - the screen does not allow to ungear, fall asleep and so forth) Well and on termination of recovered a situation As it to make in.NET (4.6.2)? Thanks...

2

Re: How to lock a sleeping mode from the console application?

Hello, mDmitriy, you wrote: D> All greetings! D> Subj, actually D> It is necessary, that the console application when it is launched, did not allow to system to pass in sleeping mode D> (Like there is a similar behavior for video-players - the screen does not allow to ungear, fall asleep and so forth) D> Well and on termination of recovered situation D> As it to make in.NET (4.6.2)? D> Thanks... Already considered: here the Author: wonderboy Date: 29.08.10.

3

Re: How to lock a sleeping mode from the console application?

Hello, mDmitriy, you wrote: D> Subj, actually D> It is necessary, that the console application when it is launched, did not allow to system to pass in sleeping mode D> (Like there is a similar behavior for video-players - the screen does not allow to ungear, fall asleep and so forth) D> Well and on termination of recovered situation D> As it to make in.NET (4.6.2)? prevent-windows-from-going-into-sleep-when-my-program-is-running... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>

4

Re: How to lock a sleeping mode from the console application?

Hello, mDmitriy, you wrote: D> It is necessary, that the console application when it is launched, did not allow to system to pass in sleeping mode D> (Like there is a similar behavior for video-players - the screen does not allow to ungear, fall asleep and so forth) Here there is an aaplet with source codes which it does: https://dlaa.me/Insomnia

5

Re: How to lock a sleeping mode from the console application?