Can the Window Window application continue to run even though the computer goes into sleep mode?

I am developing a windows application using c # .net. This will accept the login information, confirm the registration, and continue without user intervention until the computer is turned on.

This computer will do nothing and will go into sleep mode after a few minutes in accordance with the security policy.

Is there a way I can configure my app to avoid hibernation when the computer goes into standby and does the app support? I know we can do this by installing this application as a service. However, the service cannot print my data without invoking the print dialog and therefore I cannot configure the application as a service.

+1


source to share


3 answers


I'm not sure I fully understand - do you want your application to keep running WHILE when the computer sleeps? If so, then you cannot do it, he sleeps :) The services do not work when the car was sleeping too.



It should still work when the machine wakes up again.

+8


source


If in idle mode you mean a screen saver or a locked screen, then any standard application will still work. If in standby mode you mean automatic logoff, then the solution would be to create a Windows service. This can be configured to run on a system with no active users. If in standby you mean sleep or hibernation, then I'm afraid you are out of luck as the machine won't start anything at all.



+2


source


The system doesn't actually hibernate, so your app won't either. Note that basically all you can do is wake up.

+2


source







All Articles